mercurial/verify.py
branchstable
changeset 20530 78f547cdc362
parent 18003 e1e181a64de7
child 22933 3a60cd44e619
equal deleted inserted replaced
20529:ca970d6acedb 20530:78f547cdc362
    36     ui = repo.ui
    36     ui = repo.ui
    37     cl = repo.changelog
    37     cl = repo.changelog
    38     mf = repo.manifest
    38     mf = repo.manifest
    39     lrugetctx = util.lrucachefunc(repo.changectx)
    39     lrugetctx = util.lrucachefunc(repo.changectx)
    40 
    40 
    41     if not repo.cancopy():
    41     if not repo.url().startswith('file:'):
    42         raise util.Abort(_("cannot verify bundle or remote repos"))
    42         raise util.Abort(_("cannot verify bundle or remote repos"))
    43 
    43 
    44     def err(linkrev, msg, filename=None):
    44     def err(linkrev, msg, filename=None):
    45         if linkrev is not None:
    45         if linkrev is not None:
    46             badrevs.add(linkrev)
    46             badrevs.add(linkrev)