Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.5, 0.6, and 0.7

nautilus: fix error when there is no repo in the current directory

Changeset 10ad9bbe02a7

Parent 4fc47282ede8

by Germсn Pєo-Caamaёo

Changes to one file · Browse files at 10ad9bbe02a7 Showing diff from parent 4fc47282ede8 Diff from another changeset...

 
168
169
170
 
 
 
 
 
171
172
 
173
174
175
 
168
169
170
171
172
173
174
175
176
 
177
178
179
180
@@ -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]