Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 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 | 81f559d1b9b2 |
children | d976542986d2 |
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"))