Submitter | phabricator |
---|---|
Date | Oct. 16, 2019, 4:54 p.m. |
Message ID | <differential-rev-PHID-DREV-xty77upmmmtcbo35ibxv-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/42407/ |
State | Superseded |
Headers | show |
Comments
This revision is now accepted and ready to land. martinvonz added a comment. martinvonz accepted this revision. In my copies-in-changesets version of mozilla-unified, this makes a very significant difference: before: ! wall 4.485065 comb 4.490000 user 4.440000 sys 0.050000 (best of 10) after: ! wall 3.695755 comb 3.690000 user 3.660000 sys 0.030000 (best of 10) REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7122/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7122 To: marmoute, #hg-reviewers, martinvonz Cc: martinvonz, mercurial-devel
Patch
diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -207,12 +207,13 @@ return copies for i, c in enumerate(children[r]): childctx = repo[c] + p1, p2 = cl.parentrevs(c) p1copies, p2copies = childctx._copies - if r == childctx.p1().rev(): + if r == p1: parent = 1 childcopies = p1copies else: - assert r == childctx.p2().rev() + assert r == p2 parent = 2 childcopies = p2copies if not alwaysmatch: