133 # text passed to "addrevision" includes hg filelog metadata header |
133 # text passed to "addrevision" includes hg filelog metadata header |
134 if node is None: |
134 if node is None: |
135 node = storageutil.hashrevisionsha1(text, p1, p2) |
135 node = storageutil.hashrevisionsha1(text, p1, p2) |
136 |
136 |
137 meta, metaoffset = storageutil.parsemeta(text) |
137 meta, metaoffset = storageutil.parsemeta(text) |
138 rawtext, validatehash = self._processflags(text, flags, 'write') |
138 rawtext, validatehash = self._processflagswrite(text, flags) |
139 return self.addrawrevision(rawtext, transaction, linknode, p1, p2, |
139 return self.addrawrevision(rawtext, transaction, linknode, p1, p2, |
140 node, flags, cachedelta, |
140 node, flags, cachedelta, |
141 _metatuple=(meta, metaoffset)) |
141 _metatuple=(meta, metaoffset)) |
142 |
142 |
143 def addrawrevision(self, rawtext, transaction, linknode, p1, p2, node, |
143 def addrawrevision(self, rawtext, transaction, linknode, p1, p2, node, |