##// END OF EJS Templates
copies: no longer change the sidedata flag...
marmoute -
r46216:7a757e89 default
parent child Browse files
Show More
@@ -13,8 +13,6 b' import os'
13 13 from .i18n import _
14 14
15 15
16 from .revlogutils.flagutil import REVIDX_SIDEDATA
17
18 16 from . import (
19 17 match as matchmod,
20 18 node,
@@ -202,7 +200,6 b' def _revinfo_getter(repo):'
202 200 return ismerged
203 201
204 202 changelogrevision = cl.changelogrevision
205 flags = cl.flags
206 203
207 204 # A small cache to avoid doing the work twice for merges
208 205 #
@@ -232,28 +229,23 b' def _revinfo_getter(repo):'
232 229 def revinfo(rev):
233 230 p1, p2 = parents(rev)
234 231 value = None
235 if flags(rev) & REVIDX_SIDEDATA:
236 e = merge_caches.pop(rev, None)
237 if e is not None:
238 return e
239 c = changelogrevision(rev)
240 p1copies = c.p1copies
241 p2copies = c.p2copies
242 removed = c.filesremoved
243 if p1 != node.nullrev and p2 != node.nullrev:
244 # XXX some case we over cache, IGNORE
245 value = merge_caches[rev] = (
246 p1,
247 p2,
248 p1copies,
249 p2copies,
250 removed,
251 get_ismerged(rev),
252 )
253 else:
254 p1copies = {}
255 p2copies = {}
256 removed = []
232 e = merge_caches.pop(rev, None)
233 if e is not None:
234 return e
235 c = changelogrevision(rev)
236 p1copies = c.p1copies
237 p2copies = c.p2copies
238 removed = c.filesremoved
239 if p1 != node.nullrev and p2 != node.nullrev:
240 # XXX some case we over cache, IGNORE
241 value = merge_caches[rev] = (
242 p1,
243 p2,
244 p1copies,
245 p2copies,
246 removed,
247 get_ismerged(rev),
248 )
257 249
258 250 if value is None:
259 251 value = (p1, p2, p1copies, p2copies, removed, get_ismerged(rev))
General Comments 0
You need to be logged in to leave comments. Login now