Commit 3d29404c authored by Steve Borho's avatar Steve Borho
Browse files

repowidget: initial select tip if wc parent is NULL

By setting _reload_rev to '.', it was forcing the repowidget to load the
entire graph into memory before showing anything.
parent 3fc2145bf2e9
......@@ -65,7 +65,10 @@ class RepoWidget(QWidget):
self.bundle = None
self.revset = set()
self._reload_rev = '.' # select working parent at startup
if repo.parents()[0].rev() == -1:
self._reload_rev = 'tip'
else:
self._reload_rev = '.'
self.currentMessage = ''
self.runner = None
self.dirty = False
......@@ -572,7 +575,7 @@ class RepoWidget(QWidget):
if self.rev is None or len(self.repo) > self.rev:
self._reload_rev = self.rev
else:
self._reload_rev = '.'
self._reload_rev = 'tip'
self.setupModels()
self.revDetailsWidget.record()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment