Mercurial > hg-stable
comparison mercurial/verify.py @ 7141:8d1bdaf842de
issue 1144: prevent traceback on verify of bundles
author | John Mulligan <phlogistonjohn@asynchrono.us> |
---|---|
date | Sat, 18 Oct 2008 14:43:14 -0400 |
parents | 90227c42b5f6 |
children | 9fe97eea5510 |
comparison
equal
deleted
inserted
replaced
7140:beeeb0cd73e7 | 7141:8d1bdaf842de |
---|---|
25 errors = [0] | 25 errors = [0] |
26 warnings = [0] | 26 warnings = [0] |
27 ui = repo.ui | 27 ui = repo.ui |
28 cl = repo.changelog | 28 cl = repo.changelog |
29 mf = repo.manifest | 29 mf = repo.manifest |
30 | |
31 if not repo.cancopy(): | |
32 raise util.Abort(_("cannot verify bundle or remote repos")) | |
30 | 33 |
31 def err(linkrev, msg, filename=None): | 34 def err(linkrev, msg, filename=None): |
32 if linkrev != None: | 35 if linkrev != None: |
33 badrevs[linkrev] = True | 36 badrevs[linkrev] = True |
34 else: | 37 else: |