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

grep: pass match line numbers to wctxactions.edit()

Changeset 4bf82485214d

Parent fd8dcce1ddca

by Steve Borho

Changes to one file · Browse files at 4bf82485214d Showing diff from parent fd8dcce1ddca Diff from another changeset...

 
20
21
22
23
24
25
26
27
28
 
407
408
409
410
411
412
413
 
414
415
416
417
 
418
419
420
 
20
21
22
 
 
 
23
24
25
 
404
405
406
 
407
408
 
409
410
411
412
 
413
414
415
416
@@ -20,9 +20,6 @@
 # This widget can be embedded in any application that would like to  # provide search features   -# Technical Debt -# tortoisehg.editor with line number -  class SearchWidget(QDockWidget):   '''Working copy and repository search widget   SIGNALS: @@ -407,14 +404,13 @@
  repo, ui = self.repo, self.repo.ui   for rev, path, line in rows:   path = hglib.fromunicode(path) - # TODO: do something with 'line'   if rev is None:   files = [repo.wjoin(path)] - wctxactions.edit(self, ui, repo, files) + wctxactions.edit(self, ui, repo, files, line)   else:   base, _ = visdiff.snapshot(repo, [path], repo[rev])   files = [os.path.join(base, path)] - wctxactions.edit(self, ui, repo, files) + wctxactions.edit(self, ui, repo, files, line)     def vdiff(self, rows):   repo, ui = self.repo, self.repo.ui