Mercurial > hg-stable
diff setup.py @ 23856:062c3ad86651
revlog: add flags argument to _addrevision, update callers use default flags
For revlog index flags to be useful to other parts of Mercurial, they need to
be settable when writing revisions. The current use case for revlog index
flags is the censorship feature: http://mercurial.selenic.com/wiki/CensorPlan
While the censor flag could be inferred in _addrevision by interrogating the
text/delta being added, that would bury the censorship logic and
inappropriately couple it to all revision creation.
author | Mike Edgar <adgar@google.com> |
---|---|
date | Mon, 12 Jan 2015 14:30:24 -0500 |
parents | 6bc1702e7333 |
children | 8fe5fc8d7b8e |