Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 43564:698e11f7be6a
index: use `index.rev` in `bundlerepo.bundlerevlog`
Differential Revision: https://phab.mercurial-scm.org/D7340
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 09 Nov 2019 13:23:53 +0100 |
parents | 5f347567589b |
children | 88d5abec8f61 |
comparison
equal
deleted
inserted
replaced
43563:4d8a4ecbb8b9 | 43564:698e11f7be6a |
---|---|
64 start = cgunpacker.tell() - size | 64 start = cgunpacker.tell() - size |
65 | 65 |
66 link = linkmapper(cs) | 66 link = linkmapper(cs) |
67 if self.index.has_node(node): | 67 if self.index.has_node(node): |
68 # this can happen if two branches make the same change | 68 # this can happen if two branches make the same change |
69 self.bundlerevs.add(self.nodemap[node]) | 69 self.bundlerevs.add(self.index.rev(node)) |
70 continue | 70 continue |
71 | 71 |
72 for p in (p1, p2): | 72 for p in (p1, p2): |
73 if not self.index.has_node(p): | 73 if not self.index.has_node(p): |
74 raise error.LookupError( | 74 raise error.LookupError( |