Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable history, changeset: escape file paths when necessary

While I was at it, I made the repository explorer remember file searches
that are generated by the changeset panel.

Closes #951

Changeset 52ac8fe83a98

Parent 9ae8537e239c

by Steve Borho

Changes to 2 files · Browse files at 52ac8fe83a98 Showing diff from parent 9ae8537e239c Diff from another changeset...

 
975
976
977
978
 
 
979
980
981
982
983
984
 
 
 
 
 
 
 
985
986
987
 
975
976
977
 
978
979
980
 
 
 
 
 
981
982
983
984
985
986
987
988
989
990
@@ -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
850
851
852
 
 
853
854
855
856
857
858
 
 
859
860
861
 
849
850
851
 
852
853
854
855
856
857
858
 
859
860
861
862
863
@@ -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'])