[PATCH 2 of 2 v3] verify: report censored nodes if configured policy is abort
adgar at google.com
adgar at google.com
Tue Oct 14 15:22:43 CDT 2014
# HG changeset patch
# User Mike Edgar <adgar at google.com>
# Date 1413317764 14400
# Tue Oct 14 16:16:04 2014 -0400
# Node ID efe6a691c3e3b868a4c6e57c30e894a1d580cfbf
# Parent 35378c7c4440e27bd1569ec55d18e0f036209eca
verify: report censored nodes if configured policy is abort
diff -r 35378c7c4440 -r efe6a691c3e3 mercurial/verify.py
--- a/mercurial/verify.py Tue Oct 14 15:46:16 2014 -0400
+++ b/mercurial/verify.py Tue Oct 14 16:16:04 2014 -0400
@@ -267,6 +267,9 @@
if len(fl.revision(n)) != fl.size(i):
err(lr, _("unpacked size is %s, %s expected") %
(l, fl.size(i)), f)
+ except error.CensoredNodeError:
+ if ui.config("censor", "policy", "abort") == "abort":
+ err(lr, _("censored file data"), f)
except Exception, inst:
exc(lr, _("unpacking %s") % short(n), inst, f)
More information about the Mercurial-devel
mailing list