##// END OF EJS Templates
verify: report existence of journal
Sune Foldager -
r9690:b33d7084 default
parent child Browse files
Show More
@@ -7,6 +7,7 b''
7 7
8 8 from node import nullid, short
9 9 from i18n import _
10 import os
10 11 import revlog, util, error
11 12
12 13 def verify(repo):
@@ -105,6 +106,9 b' def _verify(repo):'
105 106 seen[n] = i
106 107 return lr
107 108
109 if os.path.exists(repo.sjoin("journal")):
110 ui.warn(_("abandoned transaction found - run hg recover\n"))
111
108 112 revlogv1 = cl.version != revlog.REVLOGV0
109 113 if ui.verbose or not revlogv1:
110 114 ui.status(_("repository uses revlog format %d\n") %
@@ -10,6 +10,7 b' failed to truncate data/b.i'
10 10 rollback failed - please run hg recover
11 11 abort: Permission denied .hg/store/data/b.i
12 12 % after update 0, strip 2
13 abandoned transaction found - run hg recover
13 14 checking changesets
14 15 checking manifests
15 16 crosschecking files in changesets and manifests
@@ -59,6 +60,7 b' failed to truncate 00manifest.i'
59 60 rollback failed - please run hg recover
60 61 abort: Permission denied .hg/store/00manifest.i
61 62 % after update 0, strip 2
63 abandoned transaction found - run hg recover
62 64 checking changesets
63 65 checking manifests
64 66 manifest@?: rev 2 points to nonexistent changeset 2
@@ -14,6 +14,12 b' echo % verify'
14 14 hg verify
15 15
16 16 echo
17 echo % verify with journal
18 touch .hg/store/journal
19 hg verify
20 rm .hg/store/journal
21
22 echo
17 23 echo % introduce some bugs in repo
18 24 cd .hg/store/data
19 25 mv _f_o_o.txt.i X_f_o_o.txt.i
@@ -10,6 +10,14 b' crosschecking files in changesets and ma'
10 10 checking files
11 11 3 files, 1 changesets, 3 total revisions
12 12
13 % verify with journal
14 abandoned transaction found - run hg recover
15 checking changesets
16 checking manifests
17 crosschecking files in changesets and manifests
18 checking files
19 3 files, 1 changesets, 3 total revisions
20
13 21 % introduce some bugs in repo
14 22
15 23 % verify
General Comments 0
You need to be logged in to leave comments. Login now