mercurial/verify.py
changeset 7141 8d1bdaf842de
parent 7004 90227c42b5f6
child 7361 9fe97eea5510
--- 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