Changeset 4bf82485214d…
Parent fd8dcce1ddca…
by
Changes to one file · Browse files at 4bf82485214d Showing diff from parent fd8dcce1ddca Diff from another changeset...
@@ -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
|
Loading...