Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

commit, settings: port new 'Close After Commit' feature from tip hgtk

Changeset 530b5c7f41fb

Parent c7906ef2657b

by Steve Borho

Changes to 2 files · Browse files at 530b5c7f41fb Showing diff from parent c7906ef2657b Diff from another changeset...

 
460
461
462
463
464
465
 
 
 
 
 
466
467
468
 
460
461
462
 
 
 
463
464
465
466
467
468
469
470
@@ -460,9 +460,11 @@
    def accept(self):   if self.commit.commit(): - self.reject() - else: - self.commit.stwidget.refreshWctx() + repo = self.commit.stwidget.repo + if repo.ui.configbool('tortoisehg', 'closeci'): + self.reject() + return + self.commit.stwidget.refreshWctx()     def reject(self):   if self.commit.canExit():
 
268
269
270
 
 
 
271
272
273
 
268
269
270
271
272
273
274
275
276
@@ -268,6 +268,9 @@
  ' the message and a warning will be issued'   ' if any lines are too long at commit.'   ' Default: 0 (unenforced)')), + (_('Close After Commit'), 'tortoisehg.closeci', genBoolCombo, + _('Close the commit tool after every successful' + ' commit. Default: False')),   (_('Push After Commit'), 'tortoisehg.pushafterci', genBoolCombo,   _('Attempt to push to default push target after every successful'   ' commit. Default: False')),