##// END OF EJS Templates
copies: use the rust code for `combine_changeset_copies`...
marmoute -
r46576:a66568f2 default
parent child Browse files
Show More
@@ -17,6 +17,7 b' from . import ('
17 match as matchmod,
17 match as matchmod,
18 node,
18 node,
19 pathutil,
19 pathutil,
20 policy,
20 pycompat,
21 pycompat,
21 util,
22 util,
22 )
23 )
@@ -26,6 +27,8 b' from .utils import stringutil'
26
27
27 from .revlogutils import flagutil
28 from .revlogutils import flagutil
28
29
30 rustmod = policy.importrust("copy_tracing")
31
29
32
30 def _filter(src, dst, t):
33 def _filter(src, dst, t):
31 """filters out invalid copies after chaining"""
34 """filters out invalid copies after chaining"""
@@ -310,8 +313,15 b' def _combine_changeset_copies('
310
313
311 It returns the aggregated copies information for `targetrev`.
314 It returns the aggregated copies information for `targetrev`.
312 """
315 """
316
317 alwaysmatch = match.always()
318
319 if rustmod is not None and alwaysmatch:
320 return rustmod.combine_changeset_copies(
321 list(revs), children, targetrev, revinfo, isancestor
322 )
323
313 all_copies = {}
324 all_copies = {}
314 alwaysmatch = match.always()
315 for r in revs:
325 for r in revs:
316 copies = all_copies.pop(r, None)
326 copies = all_copies.pop(r, None)
317 if copies is None:
327 if copies is None:
General Comments 0
You need to be logged in to leave comments. Login now