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

commit: first self-hosted commit

dogfood, it's what's for dinner

Changeset 7dee933a242c

Parent 2d90e04285a9

by Steve Borho

Changes to one file · Browse files at 7dee933a242c Showing diff from parent 2d90e04285a9 Diff from another changeset...

 
7
8
9
10
 
11
12
13
 
168
169
170
171
172
173
174
175
176
177
 
 
 
 
 
 
 
 
 
178
179
180
 
7
8
9
 
10
11
12
13
 
168
169
170
 
 
 
 
 
 
 
171
172
173
174
175
176
177
178
179
180
181
182
@@ -7,7 +7,7 @@
   import os   -from mercurial import hg, ui, cmdutil, util +from mercurial import hg, ui, cmdutil, util, dispatch    from PyQt4.QtCore import *  from PyQt4.QtGui import * @@ -168,13 +168,15 @@
  self.stwidget.tv.setFocus()   return   cmdline = ['commit', '--message', msg] + files - # TODO: do something interesting here - print cmdline - self.addMessageToHistory() - self.msgte.clear() - self.msgte.document().setModified(False) - self.emit(SIGNAL('commitComplete')) - return True + ret = dispatch._dispatch(self.stwidget.repo.ui, cmdline) + if not ret: + self.addMessageToHistory() + self.msgte.clear() + self.msgte.document().setModified(False) + self.emit(SIGNAL('commitComplete')) + return True + else: + return False    class MessageHistoryCombo(QComboBox):   def __init__(self, parent=None):