hgext/convert/hg.py
changeset 7633 08cabecfa8a8
parent 7236 db6fbb785800
child 7637 1d54e2f6c0b7
--- a/hgext/convert/hg.py	Sat Jan 10 18:02:38 2009 -0600
+++ b/hgext/convert/hg.py	Sun Jan 11 22:48:28 2009 -0600
@@ -17,7 +17,7 @@
 from mercurial.i18n import _
 from mercurial.repo import RepoError
 from mercurial.node import bin, hex, nullid
-from mercurial import hg, revlog, util, context
+from mercurial import hg, util, context, error
 
 from common import NoRepo, commit, converter_source, converter_sink
 
@@ -244,7 +244,7 @@
     def getfile(self, name, rev):
         try:
             return self.changectx(rev)[name].data()
-        except revlog.LookupError, err:
+        except error.LookupError, err:
             raise IOError(err)
 
     def getmode(self, name, rev):
@@ -283,7 +283,7 @@
                 copies[name] = copysource
             except TypeError:
                 pass
-            except revlog.LookupError, e:
+            except error.LookupError, e:
                 if not self.ignoreerrors:
                     raise
                 self.ignored[name] = 1