equal
deleted
inserted
replaced
378 |
378 |
379 def _isfullcopytraceable(repo, c1, base): |
379 def _isfullcopytraceable(repo, c1, base): |
380 """ Checks that if base, source and destination are all no-public branches, |
380 """ Checks that if base, source and destination are all no-public branches, |
381 if yes let's use the full copytrace algorithm for increased capabilities |
381 if yes let's use the full copytrace algorithm for increased capabilities |
382 since it will be fast enough. |
382 since it will be fast enough. |
|
383 |
|
384 `experimental.copytrace.sourcecommitlimit` can be used to set a limit for |
|
385 number of changesets from c1 to base such that if number of changesets are |
|
386 more than the limit, full copytracing algorithm won't be used. |
383 """ |
387 """ |
384 if c1.rev() is None: |
388 if c1.rev() is None: |
385 c1 = c1.p1() |
389 c1 = c1.p1() |
386 if c1.mutable() and base.mutable(): |
390 if c1.mutable() and base.mutable(): |
387 sourcecommitlimit = repo.ui.configint('experimental', |
391 sourcecommitlimit = repo.ui.configint('experimental', |