mercurial/commands.py
changeset 4379 f4af7960d578
parent 4374 de612b5f8d59
child 4381 28054fc34923
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1550,7 +1550,7 @@ def import_(ui, repo, patch1, *patches, 
                     p2 = repo.lookup(p2)
                     if p1 == wp[0].node():
                         repo.dirstate.setparents(p1, p2)
-                except RepoError:
+                except hg.RepoError:
                     pass
 
             files = {}