Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable datamine: catch Abort errors from canonpath()

There are some paths inside the repository that produce errors in
util.canonpath()

Fixes #668

Changeset b36d953d4e34

Parent 22607a1c6d40

by Steve Borho

Changes to one file · Browse files at b36d953d4e34 Showing diff from parent 22607a1c6d40 Diff from another changeset...

 
296
297
298
299
 
 
 
 
 
 
300
301
302
 
296
297
298
 
299
300
301
302
303
304
305
306
307
@@ -296,7 +296,12 @@
  regexp = gtk.Entry()   includes = gtk.Entry()   if self.cwd.startswith(self.repo.root): - includes.set_text(util.canonpath(self.repo.root, self.cwd, '.')) + try: + relpath = util.canonpath(self.repo.root, self.cwd, '.') + includes.set_text(relpath) + except hglib.Abort: + # Some paths inside root are invalid (.hg/*) + pass   excludes = gtk.Entry()   search = gtk.Button(_('Search'))   search_hbox.pack_start(gtk.Label(_('Regexp:')), False, False, 4)