Changeset c45f40e6eab6…
Parent e1e3fb7634e9…
by
Changes to one file · Browse files at c45f40e6eab6 Showing diff from parent e1e3fb7634e9 Diff from another changeset...
@@ -5,6 +5,7 @@ import threading
import Queue
from mercurial import hg, ui, util, extensions, commands, hook
+from mercurial.repo import RepoError
from mercurial.node import *
from mercurial.i18n import _
from dialog import entry_dialog
@@ -175,7 +176,7 @@ self.ret = ret or 0
if self.postfunc:
self.postfunc(ret)
- except hg.RepoError, e:
+ except RepoError, e:
self.ui.write_err(str(e))
except util.Abort, e:
self.ui.write_err(str(e))
@@ -294,10 +295,10 @@ ui.setconfig("bundle", "mainreporoot", repo.root)
if not repo.local():
raise util.Abort(_("repository '%s' is not local") % path)
- except hg.RepoError:
+ except RepoError:
if cmd not in commands.optionalrepo.split():
if not path:
- raise hg.RepoError(_("There is no Mercurial repository here"
+ raise RepoError(_("There is no Mercurial repository here"
" (.hg not found)"))
raise
d = lambda: func(ui, repo, *args, **cmdoptions)
|
Loading...