##// END OF EJS Templates
revlog: avoid opening and closing the file for each cloned revision...
marmoute -
r52007:315c7491 stable
parent child Browse files
Show More
@@ -3196,14 +3196,15 b' class revlog:'
3196
3196
3197 destrevlog._deltabothparents = forcedeltabothparents or oldamd
3197 destrevlog._deltabothparents = forcedeltabothparents or oldamd
3198
3198
3199 self._clone(
3199 with self.reading(), destrevlog._writing(tr):
3200 tr,
3200 self._clone(
3201 destrevlog,
3201 tr,
3202 addrevisioncb,
3202 destrevlog,
3203 deltareuse,
3203 addrevisioncb,
3204 forcedeltabothparents,
3204 deltareuse,
3205 sidedata_helpers,
3205 forcedeltabothparents,
3206 )
3206 sidedata_helpers,
3207 )
3207
3208
3208 finally:
3209 finally:
3209 destrevlog._lazydelta = oldlazydelta
3210 destrevlog._lazydelta = oldlazydelta
@@ -3288,19 +3289,18 b' class revlog:'
3288 )
3289 )
3289 flags = flags | new_flags[0] & ~new_flags[1]
3290 flags = flags | new_flags[0] & ~new_flags[1]
3290
3291
3291 with destrevlog._writing(tr):
3292 destrevlog._addrevision(
3292 destrevlog._addrevision(
3293 node,
3293 node,
3294 rawtext,
3294 rawtext,
3295 tr,
3295 tr,
3296 linkrev,
3296 linkrev,
3297 p1,
3297 p1,
3298 p2,
3298 p2,
3299 flags,
3299 flags,
3300 cachedelta,
3300 cachedelta,
3301 deltacomputer=deltacomputer,
3301 deltacomputer=deltacomputer,
3302 sidedata=sidedata,
3302 sidedata=sidedata,
3303 )
3303 )
3304
3304
3305 if addrevisioncb:
3305 if addrevisioncb:
3306 addrevisioncb(self, rev, node)
3306 addrevisioncb(self, rev, node)
General Comments 0
You need to be logged in to leave comments. Login now