Changeset 52ac8fe83a98…
Parent 9ae8537e239c…
by
Changes to 2 files · Browse files at 52ac8fe83a98 Showing diff from parent 9ae8537e239c Diff from another changeset...
@@ -975,13 +975,16 @@ if self.glog_parent:
# If this changeset browser is embedded in glog, send
# send this event to the main app
- fname = hglib.toutf(self.curfile)
+ path = hglib.escapepath(self.curfile)
+ fname = hglib.toutf(path)
opts = {'pats': [fname]}
- self.glog_parent.filtercombo.set_active(1)
- self.glog_parent.filterentry.set_text(fname)
- self.glog_parent.filterbar.get_button('custom').set_active(True)
- self.glog_parent.filter = 'custom'
- self.glog_parent.reload_log(**opts)
+ explorer = self.glog_parent
+ explorer.filter = 'custom'
+ explorer.filtercombo.set_active(1)
+ explorer.filterentry.set_text(fname)
+ explorer.filterbar.get_button('custom').set_active(True)
+ explorer.filter_entry_activated(explorer.filterentry,
+ explorer.filtercombo)
else:
# Else launch our own glog instance
from tortoisehg.hgtk import history
|
@@ -849,13 +849,15 @@ self.filterbar.get_button('custom').set_active(True)
self.filter = 'custom'
self.filtercombo.set_active(1)
- self.filterentry.set_text(hglib.toutf(opts['filehist']))
+ path = hglib.escapepath(opts['filehist'])
+ self.filterentry.set_text(hglib.toutf(path))
self.filter_entry_activated(self.filterentry, self.filtercombo)
elif self.pats:
self.filterbar.get_button('custom').set_active(True)
self.filter = 'custom'
self.filtercombo.set_active(1)
- self.filterentry.set_text(hglib.toutf(', '.join(self.pats)))
+ paths = [hglib.escapepath(p) for p in self.pats]
+ self.filterentry.set_text(hglib.toutf(', '.join(paths)))
self.filter_entry_activated(self.filterentry, self.filtercombo)
elif 'bundle' in opts:
self.set_bundlefile(opts['bundle'])
|
Loading...