Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

grep: send regexp pattern to user's editor

Changeset 9bdfce03da77

Parent bb0f4c168277

by Steve Borho

Changes to one file · Browse files at 9bdfce03da77 Showing diff from parent bb0f4c168277 Diff from another changeset...

 
169
170
171
 
172
173
174
 
331
332
333
 
334
335
336
 
406
407
408
409
 
410
411
412
413
 
414
415
416
417
 
418
419
420
 
169
170
171
172
173
174
175
 
332
333
334
335
336
337
338
 
408
409
410
 
411
412
413
414
 
415
416
417
418
 
419
420
421
422
@@ -169,6 +169,7 @@
  self.emit(SIGNAL('errorMessage'), msg)   return   + self.tv.pattern = pattern   self.regexple.selectAll()   inc = hglib.fromunicode(self.incle.text())   if inc: inc = inc.split(', ') @@ -331,6 +332,7 @@
  self.setContextMenuPolicy(Qt.CustomContextMenu)   self.connect(self, SIGNAL('customContextMenuRequested(const QPoint &)'),   self.customContextMenuRequested) + self.pattern = None     def dragObject(self):   snapshots = {} @@ -406,15 +408,15 @@
    def view(self, rows):   from tortoisehg.hgqt import wctxactions - repo, ui = self.repo, self.repo.ui + repo, ui, pattern = self.repo, self.repo.ui, self.pattern   for rev, path, line in rows:   if rev is None:   files = [repo.wjoin(path)] - wctxactions.edit(self, ui, repo, files, line) + wctxactions.edit(self, ui, repo, files, line, pattern)   else:   base, _ = visdiff.snapshot(repo, [path], repo[rev])   files = [os.path.join(base, path)] - wctxactions.edit(self, ui, repo, files, line) + wctxactions.edit(self, ui, repo, files, line, pattern)     def vdiff(self, rows):   repo, ui = self.repo, self.repo.ui