Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 14292:c97d8485b5fa
revlog: add docstring to _addrevision
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Wed, 11 May 2011 11:04:44 +0200 |
parents | d6907a5674a2 |
children | 62e25c63fb3a |
comparison
equal
deleted
inserted
replaced
14291:1a791993ce59 | 14292:c97d8485b5fa |
---|---|
976 dfh.close() | 976 dfh.close() |
977 ifh.close() | 977 ifh.close() |
978 | 978 |
979 def _addrevision(self, node, text, transaction, link, p1, p2, | 979 def _addrevision(self, node, text, transaction, link, p1, p2, |
980 cachedelta, ifh, dfh): | 980 cachedelta, ifh, dfh): |
981 | 981 """internal function to add revisions to the log |
982 | |
983 see addrevision for argument descriptions. | |
984 invariants: | |
985 - text is optional (can be None); if not set, cachedelta must be set. | |
986 if both are set, they must correspond to eachother. | |
987 """ | |
982 btext = [text] | 988 btext = [text] |
983 def buildtext(): | 989 def buildtext(): |
984 if btext[0] is not None: | 990 if btext[0] is not None: |
985 return btext[0] | 991 return btext[0] |
986 # flush any pending writes here so we can read it in revision | 992 # flush any pending writes here so we can read it in revision |