Show More
@@ -28,6 +28,9 b' def _verify(repo):' | |||||
28 | cl = repo.changelog |
|
28 | cl = repo.changelog | |
29 | mf = repo.manifest |
|
29 | mf = repo.manifest | |
30 |
|
30 | |||
|
31 | if not repo.cancopy(): | |||
|
32 | raise util.Abort(_("cannot verify bundle or remote repos")) | |||
|
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 |
@@ -129,3 +129,14 b' hg bundle ../bundle.hg ../orig' | |||||
129 | cd ../orig |
|
129 | cd ../orig | |
130 | hg incoming ../bundle.hg |
|
130 | hg incoming ../bundle.hg | |
131 | cd .. |
|
131 | cd .. | |
|
132 | ||||
|
133 | # test for http://www.selenic.com/mercurial/bts/issue1144 | |||
|
134 | echo "===== test that verify bundle does not traceback" | |||
|
135 | # partial history bundle, fails w/ unkown parent | |||
|
136 | hg -R bundle.hg verify | |||
|
137 | # full history bundle, refuses to verify non-local repo | |||
|
138 | hg -R all.hg verify | |||
|
139 | # but, regular verify must continue to work | |||
|
140 | hg -R orig verify | |||
|
141 | ||||
|
142 |
@@ -309,3 +309,11 b' user: test' | |||||
309 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
309 | date: Thu Jan 01 00:00:00 1970 +0000 | |
310 | summary: change foo |
|
310 | summary: change foo | |
311 |
|
311 | |||
|
312 | ===== test that verify bundle does not traceback | |||
|
313 | abort: 00changelog.i@bbd179dfa0a7: unknown parent! | |||
|
314 | abort: cannot verify bundle or remote repos | |||
|
315 | checking changesets | |||
|
316 | checking manifests | |||
|
317 | crosschecking files in changesets and manifests | |||
|
318 | checking files | |||
|
319 | 2 files, 2 changesets, 2 total revisions |
General Comments 0
You need to be logged in to leave comments.
Login now