Commits

Wagner Bruna committed 7bb78ec

history: catch LookupError from ambiguous revisions

Comments (0)

Files changed (1)

tortoisehg/hgtk/gorev.py

                 self.gotofunc(revision)
             self.revEntry.set_text('')
             self.hide()
+        except mercurial.error.LookupError, e:
+            gdialog.Prompt(_('Ambiguous Revision'), str(e), self).run()
+            self.revEntry.grab_focus()
+            return
         except mercurial.error.RepoError, e:
             gdialog.Prompt(_('Invalid Revision'), str(e), self).run()
             self.revEntry.grab_focus()