Changeset 530b5c7f41fb…
Parent c7906ef2657b…
by
Changes to 2 files · Browse files at 530b5c7f41fb Showing diff from parent c7906ef2657b Diff from another changeset...
@@ -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,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')),
|
Loading...