Changeset 10ad9bbe02a7…
Parent 4fc47282ede8…
by
Changes to one file · Browse files at 10ad9bbe02a7 Showing diff from parent 4fc47282ede8 Diff from another changeset...
@@ -168,8 +168,13 @@ repo = self.get_repo_for_path(path)
cwd = os.path.isdir(path) and path or os.path.dirname(path)
+ if repo is not None:
+ root = repo.root
+ else:
+ root = cwd
+
cmdopts = [sys.executable, self.hgproc]
- cmdopts += ['--root', repo.root]
+ cmdopts += ['--root', root]
cmdopts += ['--cwd', cwd]
cmdopts += ['--command', hgcmd]
|
Loading...