Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 24118:76f6ae06ddf5
revlog: add "iscensored()" to revlog public API
The iscensored method will be used by the exchange layer to reject
nonconforming deltas involving censored revisions (and to produce
conforming deltas).
For background and broader design of the censorship feature, see:
http://mercurial.selenic.com/wiki/CensorPlan
author | Mike Edgar <adgar@google.com> |
---|---|
date | Fri, 23 Jan 2015 17:01:39 -0500 |
parents | 828dc8db5515 |
children | a450e0a2ba0a |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Feb 06 01:44:24 2015 +0000 +++ b/mercurial/revlog.py Fri Jan 23 17:01:39 2015 -0500 @@ -1419,6 +1419,10 @@ return content + def iscensored(self, rev): + """Check if a file revision is censored.""" + return False + def getstrippoint(self, minlink): """find the minimum rev that must be stripped to strip the linkrev