##// 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 from . import (
17 17 match as matchmod,
18 18 node,
19 19 pathutil,
20 policy,
20 21 pycompat,
21 22 util,
22 23 )
@@ -26,6 +27,8 from .utils import stringutil
26 27
27 28 from .revlogutils import flagutil
28 29
30 rustmod = policy.importrust("copy_tracing")
31
29 32
30 33 def _filter(src, dst, t):
31 34 """filters out invalid copies after chaining"""
@@ -310,8 +313,15 def _combine_changeset_copies(
310 313
311 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 324 all_copies = {}
314 alwaysmatch = match.always()
315 325 for r in revs:
316 326 copies = all_copies.pop(r, None)
317 327 if copies is None:
General Comments 0
You need to be logged in to leave comments. Login now