[PATCH 2 of 2 V2] censor: document that some commands simply ignore censored data
Jordi Gutiérrez Hermoso
jordigh at octave.org
Tue Oct 22 10:02:43 EDT 2019
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh at octave.org>
# Date 1571752908 14400
# Tue Oct 22 10:01:48 2019 -0400
# Node ID 2bf40680a6362c44c183f17572f24d6ec086a3c6
# Parent 386e0a956ae57a95d62330c95497d7460761f3fd
censor: document that some commands simply ignore censored data
I can't see a benefit for hg grep to ever error out early when it
encounters censored data.
diff --git a/hgext/censor.py b/hgext/censor.py
@@ -23,6 +23,10 @@ simply fail when asked to produce censor
``hg update``, must be capable of tolerating censored data to continue to
function in a meaningful way. Such commands only tolerate censored file
revisions if they are allowed by the "censor.policy=ignore" config option.
+A few informative commands such as ``hg grep`` will unconditionally
+ignore censored data and merely report that it was encountered.
from __future__ import absolute_import
More information about the Mercurial-devel