by
Changes to 2 files · Browse files at b5c317e3927b Showing diff from parent 1e401643bca9 398e5ff836a6 Diff from another changeset...
@@ -325,7 +325,13 @@ self.set_default_size(defx, defy)
if self._setting_wasmax:
self.maximize()
- self.move(self._setting_winpos[0], self._setting_winpos[1])
+
+ # Restore position if it is still on screen
+ screen = self.get_screen()
+ w, h = screen.get_width(), screen.get_height()
+ x, y = self._setting_winpos
+ if x >= 0 and x < w and y >= 0 and y < h:
+ self.move(x, y)
vbox = gtk.VBox(False, 0)
self.add(vbox)
|
@@ -33,6 +33,7 @@ self.fromlog = fromlog
self.notify_func = None
self.last_drop_time = None
+ self.lastcmd = []
self.saved_stdout = sys.stdout
self.saved_stderr = sys.stderr
@@ -294,7 +295,12 @@ except hglib.RepoError:
return
tip = len(repo)
- if self.origchangecount == tip or self.fromlog:
+ if ' '.join(self.lastcmd[:2]) == 'pull --rebase':
+ # if last operation was a rebase, do not show 'viewpulled'
+ # and reset our remembered tip changeset
+ self.origchangecount = tip
+ self.viewpulled.hide()
+ elif self.origchangecount == tip or self.fromlog:
self.viewpulled.hide()
else:
self.buttonhbox.show()
@@ -441,7 +447,7 @@ def conf_clicked(self, toolbutton, data=None):
newpath = hglib.fromutf(self.pathtext.get_text()).strip()
for alias, path in self.paths:
- if path == newpath:
+ if newpath in (path, url.hidepassword(path)):
newpath = None
break
dlg = thgconfig.ConfigDialog(True)
@@ -521,10 +527,11 @@ remote_path = path
cmdline = cmd[:]
- cmdline += ['--verbose', '--repository', self.root]
+ cmdline += ['--verbose']
if proxy_host and not use_proxy:
cmdline += ["--config", "http_proxy.host="]
cmdline += [remote_path]
+ self.lastcmd = cmdline
# show command to be executed
self.write("", False)
@@ -599,7 +606,7 @@ self.stop_button.set_sensitive(False)
if self.hgthread.return_code() is None:
self.write_err(_('[command interrupted]'))
- if self.notify_func:
+ if self.notify_func and self.lastcmd[0] == 'pull':
self.notify_func(self.notify_args)
return False # Stop polling this function
|
Loading...