Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/verify.py Sat Oct 18 21:11:44 2008 +0200 +++ b/mercurial/verify.py Sat Oct 18 14:43:14 2008 -0400 @@ -28,6 +28,9 @@ cl = repo.changelog mf = repo.manifest + if not repo.cancopy(): + raise util.Abort(_("cannot verify bundle or remote repos")) + def err(linkrev, msg, filename=None): if linkrev != None: badrevs[linkrev] = True