D7494: localrepo: fastpath access to "."
Closed by commit rHGd86dede17392: localrepo: fastpath access to "." (authored by marmoute). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7494?vs=19362&id=19410 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1543,6 +1543,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers, pulkit Cc: pulkit, mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D7494: localrepo: fastpath access to "."
pulkit added a comment. > "." is just an aliast for `p1(wdir()`, "." is just an alias for `p1(wdir())`, in flight. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 To: marmoute, #hg-reviewers Cc: pulkit, mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Re: D7494: localrepo: fastpath access to "."
Note: I sent the rebase of this series on behalf of marmoute as he is unable to access his computer at this time. On 1/16/20 3:26 PM, Alphare (Raphaël Gomès) wrote: Alphare updated this revision to Diff 19362. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7494?vs=18383&id=19362 BRANCH default CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1543,6 +1543,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D7494: localrepo: fastpath access to "."
Alphare updated this revision to Diff 19362. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7494?vs=18383&id=19362 BRANCH default CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1543,6 +1543,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D7494: localrepo: fastpath access to "."
marmoute updated this revision to Diff 18383. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7494?vs=18359&id=18383 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1540,6 +1540,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D7494: localrepo: fastpath access to "."
marmoute updated this revision to Diff 18359. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7494?vs=18301&id=18359 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7494/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1540,6 +1540,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D7494: localrepo: fastpath access to "."
marmoute created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY "." is just an aliast for `p1(wdir()`, let us handle it that way. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7494 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1540,6 +1540,9 @@ pair = (rev, node) quick[rev] = pair quick[node] = pair +p1node = self.dirstate.p1() +if p1node != nullid: +quick[b'.'] = quick[p1node] return quick @unfilteredmethod To: marmoute, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel