Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24117:9cfd7c4f22f5 | 24118:76f6ae06ddf5 |
---|---|
1417 dfh.close() | 1417 dfh.close() |
1418 ifh.close() | 1418 ifh.close() |
1419 | 1419 |
1420 return content | 1420 return content |
1421 | 1421 |
1422 def iscensored(self, rev): | |
1423 """Check if a file revision is censored.""" | |
1424 return False | |
1425 | |
1422 def getstrippoint(self, minlink): | 1426 def getstrippoint(self, minlink): |
1423 """find the minimum rev that must be stripped to strip the linkrev | 1427 """find the minimum rev that must be stripped to strip the linkrev |
1424 | 1428 |
1425 Returns a tuple containing the minimum rev and a set of all revs that | 1429 Returns a tuple containing the minimum rev and a set of all revs that |
1426 have linkrevs that will be broken by this strip. | 1430 have linkrevs that will be broken by this strip. |