Commits

Yuya Nishihara committed d891fc2

commit: set currentAction accordingly on commit(amend=True)

The code to handle "currentAction == 'amend'" is already implemented at
commandFinished().

Comments (0)

Files changed (1)

tortoisehg/hgqt/commit.py

             commandlines.append(cmd)
 
         repo.incrementBusyCount()
-        self.currentAction = 'commit'
+        if amend:
+            self.currentAction = 'amend'
+        else:
+            self.currentAction = 'commit'
         self.currentProgress = _('Commit', 'start progress')
         self.progress.emit(*cmdui.startProgress(self.currentProgress, ''))
         self.commitButtonEnable.emit(False)