Mercurial > public > mercurial-scm > hg-stable
diff hgext/censor.py @ 43486:bec734015b70
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.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 22 Oct 2019 10:01:48 -0400 |
parents | 687b865b95ad |
children | 5105a9975407 |
line wrap: on
line diff
--- a/hgext/censor.py Tue Oct 22 09:56:40 2019 -0400 +++ b/hgext/censor.py Tue Oct 22 10:01:48 2019 -0400 @@ -23,6 +23,9 @@ ``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