Commits

Yuya Nishihara committed 5ec7361

commit: specify repository path explicitly on rollback by undo button

If CommitDialog is instantiated from MQWidget, the repository root is
different from cwd. As a result, rollback fails.

  • Participants
  • Parent commits 32e7bce
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/commit.py

         self.currentProgress = _('Rollback', 'start progress')
         self.progress.emit(*cmdui.startProgress(self.currentProgress, ''))
         self.commitButtonEnable.emit(False)
-        self.runner.run(['rollback'])
+        self.runner.run(['rollback', '--repository', self.repo.root])
         self.stopAction.setEnabled(True)
 
     def updateRecentMessages(self):