Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 3448:6ca49c5fe268
Stop erroring out pull -r and clone -r if repository isn't local.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Sat, 09 Sep 2006 18:25:07 -0700 |
parents | ef2e990f9047 |
children | 2956948b81f3 |
line wrap: on
line diff
--- a/mercurial/hg.py Sat Sep 09 18:25:06 2006 -0700 +++ b/mercurial/hg.py Sat Sep 09 18:25:07 2006 -0700 @@ -176,9 +176,10 @@ else: revs = None if rev: - if not src_repo.local(): - raise util.Abort(_("clone by revision not supported yet " - "for remote repositories")) + if 'lookup' not in src_repo.capabilities: + raise util.Abort(_("src repository does not support revision " + "lookup and so doesn't support clone by " + "revision")) revs = [src_repo.lookup(r) for r in rev] if dest_repo.local():