[PATCH 06 of 15 RFC] verify: avoid "journal" file check at partial verification
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Wed Oct 3 16:39:03 UTC 2012
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1349281445 -32400
# Node ID 6f11a34c781de8ad21b58e03958474c8d69bdef5
# Parent d8898e4a2e1908b67de486139cb55c58bb461718
verify: avoid "journal" file check at partial verification
Partial verification may be executed, before all transactions are not
yet fully completed.
In such cases, there may be "journal" in store area.
This patch avoids "journal" file check at partial verification.
diff -r d8898e4a2e19 -r 6f11a34c781d mercurial/verify.py
--- a/mercurial/verify.py Thu Oct 04 01:24:05 2012 +0900
+++ b/mercurial/verify.py Thu Oct 04 01:24:05 2012 +0900
@@ -112,7 +112,7 @@
seen[node] = i
return lr
- if os.path.exists(repo.sjoin("journal")):
+ if not partially and os.path.exists(repo.sjoin("journal")):
ui.warn(_("abandoned transaction found - run hg recover\n"))
revlogv1 = cl.version != revlog.REVLOGV0
More information about the Mercurial-devel
mailing list