Mercurial > public > mercurial-scm > hg
diff mercurial/verify.py @ 20530:78f547cdc362 stable
verify: do not prevent verify repository containing hidden changesets
Since a959f7167077, repo.cancopy() cannot be used to check if the repo is
a bundlerepository.
repo.url() should always have "scheme:", so it isn't necessary to parse
by util.url().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 19 Feb 2014 22:19:45 +0900 |
parents | e1e181a64de7 |
children | 3a60cd44e619 |
line wrap: on
line diff
--- a/mercurial/verify.py Wed Feb 19 21:16:43 2014 +0900 +++ b/mercurial/verify.py Wed Feb 19 22:19:45 2014 +0900 @@ -38,7 +38,7 @@ mf = repo.manifest lrugetctx = util.lrucachefunc(repo.changectx) - if not repo.cancopy(): + if not repo.url().startswith('file:'): raise util.Abort(_("cannot verify bundle or remote repos")) def err(linkrev, msg, filename=None):