Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

visdiff: chdir to repo root for repo.status() calls

supplied file patterns are always cannonical paths from repo root

Changeset 69f96fd0ba09

Parent ab579ebbe205

by Steve Borho

Changes to one file · Browse files at 69f96fd0ba09 Showing diff from parent ab579ebbe205 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​visdiff.py Stacked
 
118
119
120
121
 
 
 
 
 
 
122
123
124
 
118
119
120
 
121
122
123
124
125
126
127
128
129
@@ -118,7 +118,12 @@
  hbox.pack_start(combo, False, False, 2)   else:   self.diffpath, self.diffopts = tools[preferred] - self.find_files(repo, pats, opts, model) + cwd = os.getcwd() + try: + os.chdir(repo.root) + self.find_files(repo, pats, opts, model) + finally: + os.chdir(cwd)   else:   Prompt(_('No visual diff tool'),   _('No visual diff tool has been configured'), None).run()