Mercurial > hg
comparison mercurial/exchangev2.py @ 41217:afa884015e66
revset: remove the last usage of "%d" for a non-revision entry
In order to fix an important bug, we are about to narrow the semantic of "%d"
in revset. This is one of the few exceptions that we need to get rid of before
being able to fix the bug.
See the later semantic narrowing changeset for full rationale on the semantic
change.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 10 Jan 2019 16:03:07 +0100 |
parents | 229d23cdb203 |
children | 268662aac075 |
comparison
equal
deleted
inserted
replaced
41216:5cc5a5561c3f | 41217:afa884015e66 |
---|---|
96 # depth limiting locally. | 96 # depth limiting locally. |
97 if pullop.depth: | 97 if pullop.depth: |
98 relevantcsetnodes = set() | 98 relevantcsetnodes = set() |
99 clnode = repo.changelog.node | 99 clnode = repo.changelog.node |
100 | 100 |
101 for rev in repo.revs(b'ancestors(%ln, %d)', | 101 for rev in repo.revs(b'ancestors(%ln, %s)', |
102 pullheads, pullop.depth - 1): | 102 pullheads, pullop.depth - 1): |
103 relevantcsetnodes.add(clnode(rev)) | 103 relevantcsetnodes.add(clnode(rev)) |
104 | 104 |
105 csetrelevantfilter = lambda n: n in relevantcsetnodes | 105 csetrelevantfilter = lambda n: n in relevantcsetnodes |
106 | 106 |