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