Changeset e14521f6d3e9…
Parent f1d930944bce…
by
Changes to one file · Browse files at e14521f6d3e9 Showing diff from parent f1d930944bce Diff from another changeset...
@@ -895,7 +895,6 @@ def apply_clicked(button, bfile):
sel = ppullcombo.get_active_text()
ppull = [name for (name, label) in ppulldata if sel == label][0]
- dorebase = False
if ppull == 'fetch':
cmd = ['fetch', '--message', 'merge']
# load the fetch extension explicitly
@@ -905,7 +904,6 @@ if ppull == 'update':
cmd.append('--update')
elif ppull == 'rebase':
- dorebase = True
cmd.append('--rebase')
# load the rebase extension explicitly
extensions.load(self.ui, 'rebase', None)
@@ -915,7 +913,7 @@ dlg.show_all()
dlg.run()
dlg.hide()
- remove_overlay(dorebase)
+ remove_overlay('--rebase' in cmd)
def reject_clicked(button):
remove_overlay(False)
@@ -996,7 +994,6 @@ def pull_clicked(self, toolbutton, combo, ppullcombo, ppulldata):
sel = ppullcombo.get_active_text()
ppull = [name for (name, label) in ppulldata if sel == label][0]
- dorebase = False
if ppull == 'fetch':
cmd = ['fetch', '--message', 'merge']
# load the fetch extension explicitly
@@ -1006,7 +1003,6 @@ if ppull == 'update':
cmd.append('--update')
elif ppull == 'rebase':
- dorebase = True
cmd.append('--rebase')
# load the rebase extension explicitly
extensions.load(self.ui, 'rebase', None)
@@ -1018,7 +1014,7 @@ dlg.hide()
if dlg.return_code() == 0:
self.repo.invalidate()
- if dorebase:
+ if '--rebase' in cmd:
self.origtip = len(self.repo)
self.reload_log()
elif len(self.repo) > self.origtip:
|
Loading...