diff mercurial/commands.py @ 6405:b8346ae5d64b

commands: fix shadowed repo module
author Patrick Mezard <pmezard@gmail.com>
date Sun, 30 Mar 2008 20:18:40 +0200
parents 0d4e068e9e52
children 7c36aee46bf5 a60b711c7ac4
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Mar 29 17:16:39 2008 +0100
+++ b/mercurial/commands.py	Sun Mar 30 20:18:40 2008 +0200
@@ -6,7 +6,7 @@
 # of the GNU General Public License, incorporated herein by reference.
 
 from node import hex, nullid, nullrev, short
-from repo import RepoError
+from repo import RepoError, NoCapability
 from i18n import _
 import os, re, sys, urllib
 import hg, util, revlog, bundlerepo, extensions, copies
@@ -2045,7 +2045,7 @@
     if revs:
         try:
             revs = [other.lookup(rev) for rev in revs]
-        except repo.NoCapability:
+        except NoCapability:
             error = _("Other repository doesn't support revision lookup, "
                       "so a rev cannot be specified.")
             raise util.Abort(error)