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

commit: unify port-commit shell notifications and reload

Changeset e098ca8f556b

Parent fea398c88fba

by Steve Borho

Changes to one file · Browse files at e098ca8f556b Showing diff from parent fea398c88fba Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​commit.py Stacked
 
379
380
381
382
 
383
384
385
386
 
387
388
389
390
391
392
 
401
402
403
404
 
 
 
 
405
406
407
 
492
493
494
495
496
497
498
499
500
501
 
 
502
503
504
505
506
 
678
679
680
681
682
683
684
685
 
379
380
381
 
382
383
384
 
 
385
386
 
 
387
388
389
 
398
399
400
 
401
402
403
404
405
406
407
 
492
493
494
 
495
496
497
498
499
500
501
502
503
 
504
505
506
 
678
679
680
 
 
681
682
683
@@ -379,14 +379,11 @@
    def _commit_clicked(self, toolbutton, data=None):   if not self._ready_message(): - return True + return     if self.merging: - # as of Mercurial 1.0, merges must be committed without - # specifying file list. + # merges must be committed without specifying file list.   self._hg_commit([]) - shlib.shell_notify(self._relevant_files('MAR')) - self.reload_status()   else:   commitable = 'MAR'   addremove_list = self._relevant_files('?!') @@ -401,7 +398,10 @@
  else:   gdialog.Prompt(_('Nothing Commited'),   _('No committable files selected'), self).run() - return True + return + self.reload_status() + shlib.update_thgstatus(self.ui, self.repo.root, wait=True) + shlib.shell_notify(self._relevant_files('MAR'))     def _commit_selected(self, files):   # 1a. get list of chunks not rejected @@ -492,15 +492,15 @@
  os.rmdir(backupdir)   except OSError:   pass - self.reload_status()       def _commit_file(self, stat, file):   if self._ready_message():   if stat not in '?!' or self._should_addremove([file]):   self._hg_commit([file]) + self.reload_status() + shlib.update_thgstatus(self.ui, self.repo.root, wait=True)   shlib.shell_notify([file]) - self.reload_status()   return True     @@ -678,8 +678,6 @@
  self._last_commit_id = self._get_tip_rev(True)   if self.notify_func:   self.notify_func(self.notify_args) - shlib.update_thgstatus(self.ui, self.repo.root, wait=True) - shlib.shell_notify([self.cwd] + files)     def _get_tip_rev(self, refresh=False):   if refresh: