Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

synch: disable 'view pulled' after a rebase

Fixes #321

Changeset 1e401643bca9

Parent bc42afe331ac

by Steve Borho

Changes to one file · Browse files at 1e401643bca9 Showing diff from parent bc42afe331ac Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​synch.py Stacked
 
33
34
35
 
36
37
38
 
294
295
296
297
 
 
 
 
 
 
298
299
300
 
521
522
523
524
 
525
526
527
 
528
529
530
 
599
600
601
602
 
603
604
605
 
33
34
35
36
37
38
39
 
295
296
297
 
298
299
300
301
302
303
304
305
306
 
527
528
529
 
530
531
532
533
534
535
536
537
 
606
607
608
 
609
610
611
612
@@ -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() @@ -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