We will add another caller soon, and there's a non-obvious reason to
use the unfiltered repo that we don't want to copy across the code
base.
Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHG901e749ca0e1: context: extract partial nodeid lookup method to scmutil
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
mercurial/scmutil.py | ||
---|---|---|
439 | We'll need to verify that the returned node is NOT hidden by e.g. It's unlikely that callers expect this function may return a hidden |
mercurial/scmutil.py | ||
---|---|---|
439 | Makes sense. Okay if I do that in a follow-up so the rest of the stack is not blocked by this (I will be away until Friday)? |
mercurial/scmutil.py | ||
---|---|---|
439 | I could add it if you're happy with the following change. node = repo.unfiltered().changelog._partialmatch(prefix) repo.changelog.rev(node) # make sure node isn't filtered return node |
mercurial/scmutil.py | ||
---|---|---|
439 | LGTM. Thank you! |
We'll need to verify that the returned node is NOT hidden by e.g.
calling changelog.rev(node).
It's unlikely that callers expect this function may return a hidden
node.