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

commit: switch to repo.root folder during commit

Changeset f8202d82d1f5

Parent 9e27526a4e22

by Steve Borho

Changes to one file · Browse files at f8202d82d1f5 Showing diff from parent 9e27526a4e22 Diff from another changeset...

 
208
209
210
211
 
 
 
 
 
 
 
 
 
 
212
213
214
 
208
209
210
 
211
212
213
214
215
216
217
218
219
220
221
222
223
@@ -208,7 +208,16 @@
  self.msgcombo.reset(self.msghistory)     def commit(self): - ui = self.stwidget.repo.ui + repo = self.stwidget.repo + ui = repo.ui + cwd = os.getcwd() + try: + os.chdir(repo.root) + self._commit(repo, ui) + finally: + os.chdir(cwd) + + def _commit(self, repo, ui):   msg = self.getMessage()   if not msg:   qtlib.WarningMsgBox(_('Nothing Commited'),