mercurial/revlog.py
changeset 14292 c97d8485b5fa
parent 14270 d6907a5674a2
child 14296 62e25c63fb3a
--- a/mercurial/revlog.py	Tue May 10 16:08:47 2011 -0500
+++ b/mercurial/revlog.py	Wed May 11 11:04:44 2011 +0200
@@ -978,7 +978,13 @@
 
     def _addrevision(self, node, text, transaction, link, p1, p2,
                      cachedelta, ifh, dfh):
+        """internal function to add revisions to the log
 
+        see addrevision for argument descriptions.
+        invariants:
+        - text is optional (can be None); if not set, cachedelta must be set.
+          if both are set, they must correspond to eachother.
+        """
         btext = [text]
         def buildtext():
             if btext[0] is not None: