changeset 14552:3417954c42e9

hg: use capable instead of capabilities
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Mon, 06 Jun 2011 21:18:35 +0200
parents 68d814a3cefd
children d976542986d2
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Jun 08 13:44:41 2011 -0500
+++ b/mercurial/hg.py	Mon Jun 06 21:18:35 2011 +0200
@@ -318,7 +318,7 @@
 
             revs = None
             if rev:
-                if 'lookup' not in srcrepo.capabilities:
+                if not srcrepo.capable('lookup'):
                     raise util.Abort(_("src repository does not support "
                                        "revision lookup and so doesn't "
                                        "support clone by revision"))