--- a/hgext/parentrevspec.py Sun Jan 11 23:04:24 2009 -0600
+++ b/hgext/parentrevspec.py Mon Jan 12 10:42:31 2009 -0600
@@ -24,6 +24,7 @@
foo~2 = foo^1^1 = foo^^ = first parent of first parent of foo
'''
import mercurial.repo
+from mercurial import error
def reposetup(ui, repo):
if not repo.local():
@@ -34,7 +35,7 @@
try:
_super = super(parentrevspecrepo, self)
return _super.lookup(key)
- except mercurial.repo.RepoError:
+ except error.RepoError:
pass
circ = key.find('^')
@@ -50,7 +51,7 @@
base = key[:end]
try:
node = _super.lookup(base)
- except mercurial.repo.RepoError:
+ except error.RepoError:
# eek - reraise the first error
return _super.lookup(key)