Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

qtlib: open editor with cwd of first file being edited when possible

Changeset b18ca97eac6c

Parent dfe17fdfa5bd

by Steve Borho

Changes to one file · Browse files at b18ca97eac6c Showing diff from parent dfe17fdfa5bd Diff from another changeset...

 
138
139
140
 
 
 
 
141
142
 
143
144
145
 
138
139
140
141
142
143
144
145
 
146
147
148
149
@@ -138,8 +138,12 @@
    cmdline = util.quotecommand(cmdline)   try: + try: + cwd = os.path.dirname(files[0]) + except: + cwd = repo.root   subprocess.Popen(cmdline, shell=True, creationflags=openflags, - stderr=None, stdout=None, stdin=None, cwd=repo.root) + stderr=None, stdout=None, stdin=None, cwd=cwd)   except (OSError, EnvironmentError), e:   QMessageBox.warning(parent,   _('Editor launch failure'),