Changeset bcdbd5aa8374…
Parent 0b995f878644…
by
Changes to 2 files · Browse files at bcdbd5aa8374 Showing diff from parent 0b995f878644 Diff from another changeset...
@@ -976,4 +976,9 @@ QDialog.reject(self)
def run(ui, *pats, **opts):
- return CommitDialog(hglib.canonpaths(pats), opts)
+ from tortoisehg.util import paths
+ from tortoisehg.hgqt import thgrepo
+ repo = thgrepo.repository(ui, path=paths.find_root())
+ pats = hglib.canonpaths(pats)
+ os.chdir(repo.root)
+ return CommitDialog(pats, opts)
|
@@ -775,4 +775,9 @@ QDialog.reject(self)
def run(ui, *pats, **opts):
+ from tortoisehg.util import paths
+ from tortoisehg.hgqt import thgrepo
+ repo = thgrepo.repository(ui, path=paths.find_root())
+ pats = hglib.canonpaths(pats)
+ os.chdir(repo.root)
return StatusDialog(pats, opts)
|
Loading...