D7481: localrepo: recognize trivial "null" queries in `anyrev`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Nov 24 06:24:37 EST 2019
marmoute added a comment.
In D7481#110524 <https://phab.mercurial-scm.org/D7481#110524>, @yuja wrote:
>> + if specs == [b'null']:
>> + return revset.baseset([nullrev])
>
> This breaks `--config revsetalias.null=<whatever>`. Nobody would care, but
> I don't know why we're so hard to optimize `-r null` query.
I woudl says that changing `null` (like changing `.`) is calling for troubles and I would not worries.
optimising `null` is a good intermediate steps on the path to optimizing `.`; it also seems a possibly common request for automation.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7481/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7481
To: marmoute, #hg-reviewers, indygreg
Cc: yuja, mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list