Changeset 87349787ac38…
Parent e166c6f44f5c…
by
Changes to 2 files · Browse files at 87349787ac38 Showing diff from parent e166c6f44f5c Diff from another changeset...
@@ -971,10 +971,11 @@ if self.glog_parent:
# If this changeset browser is embedded in glog, send
# send this event to the main app
- opts = {'pats' : [self.curfile]}
+ fname = hglib.toutf(self.curfile)
+ opts = {'pats': [fname]}
self.glog_parent.filtercombo.set_active(1)
- self.glog_parent.filterentry.set_text(self.curfile)
- self.glog_parent.custombutton.set_active(True)
+ 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)
else:
|
@@ -841,13 +841,13 @@ self.filterbar.get_button('custom').set_active(True)
self.filter = 'custom'
self.filtercombo.set_active(1)
- self.filterentry.set_text(opts['filehist'])
+ self.filterentry.set_text(hglib.toutf(opts['filehist']))
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(', '.join(self.pats))
+ self.filterentry.set_text(hglib.toutf(', '.join(self.pats)))
self.filter_entry_activated(self.filterentry, self.filtercombo)
elif 'bundle' in opts:
self.set_bundlefile(opts['bundle'])
@@ -1037,8 +1037,9 @@ kind, name = match._patsplit(npats[0], None)
if kind == 'path' and not os.path.isdir(name):
ftitle(_('file history: ') + hglib.toutf(name))
- opts['filehist'] = name
- self.graphview.refresh(graphcol, [name], opts)
+ lname = hglib.fromutf(name)
+ opts['filehist'] = lname
+ self.graphview.refresh(graphcol, [lname], opts)
if not opts.get('filehist'):
ftitle(self.filtercombo.get_active_text())
self.graphview.refresh(False, npats, opts)
|
Loading...