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

stable visdiff: ensure cwd is recovered after extdiff is launched

Changeset 5527a5c0dcf2

Parent 943019bebd82

by Steve Borho

Changes to one file · Browse files at 5527a5c0dcf2 Showing diff from parent 943019bebd82 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​visdiff.py Stacked
 
318
319
320
321
322
323
324
 
 
 
 
 
 
325
326
327
 
318
319
320
 
 
 
 
321
322
323
324
325
326
327
328
329
@@ -318,10 +318,12 @@
  if os.name == 'nt':   args = ['"%s"' % arg for arg in args]   oldcwd = os.getcwd() - root = paths.find_root() - os.chdir(root) - os.spawnv(os.P_NOWAIT, sys.executable, args) - os.chdir(oldcwd) + root = paths.find_root(oldcwd) + try: + os.chdir(root) + os.spawnv(os.P_NOWAIT, sys.executable, args) + finally: + os.chdir(oldcwd)   return None   else:   pats = hglib.canonpaths(pats)