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

bugreport: use qtlib.editfiles

Changeset 52bd41d3ba53

Parent e8f38c4c6aa1

by Steve Borho

Changes to one file · Browse files at 52bd41d3ba53 Showing diff from parent e8f38c4c6aa1 Diff from another changeset...

 
159
160
161
162
163
164
165
166
 
 
 
 
 
 
167
168
169
 
159
160
161
 
 
162
163
 
164
165
166
167
168
169
170
171
172
@@ -159,11 +159,14 @@
  if ref == '#bugreport':   return BugReport(self._opts, self).exec_()   if ref.startswith('#edit:'): - from tortoisehg.hgqt import wctxactions - fname, lineno = ref[6:].rsplit(':', 1)   # A chicken-egg problem here, we need a ui to get your   # editor in order to repair your ui config file. - wctxactions.edit(self, ui.ui(), None, [fname], lineno, None) + class FakeRepo(object): + def __init__(self): + root = os.getcwd() + ui = ui.ui() + fname, lineno = ref[6:].rsplit(':', 1) + qtlib.editfiles(FakeRepo(), [fname], lineno, parent=self)    def run(ui, *pats, **opts):   return BugReport(opts)