equal
deleted
inserted
replaced
153 sidedata=None, |
153 sidedata=None, |
154 ): |
154 ): |
155 # text passed to "addrevision" includes hg filelog metadata header |
155 # text passed to "addrevision" includes hg filelog metadata header |
156 if node is None: |
156 if node is None: |
157 node = storageutil.hashrevisionsha1(text, p1, p2) |
157 node = storageutil.hashrevisionsha1(text, p1, p2) |
158 if sidedata is None: |
|
159 sidedata = {} |
|
160 |
158 |
161 meta, metaoffset = storageutil.parsemeta(text) |
159 meta, metaoffset = storageutil.parsemeta(text) |
162 rawtext, validatehash = flagutil.processflagswrite( |
160 rawtext, validatehash = flagutil.processflagswrite( |
163 self, text, flags, sidedata=sidedata |
161 self, |
|
162 text, |
|
163 flags, |
164 ) |
164 ) |
165 return self.addrawrevision( |
165 return self.addrawrevision( |
166 rawtext, |
166 rawtext, |
167 transaction, |
167 transaction, |
168 linknode, |
168 linknode, |