equal
deleted
inserted
replaced
2105 The nodes in common might not all be known locally due to the way the |
2105 The nodes in common might not all be known locally due to the way the |
2106 current discovery protocol works. |
2106 current discovery protocol works. |
2107 """ |
2107 """ |
2108 cl = self.changelog |
2108 cl = self.changelog |
2109 if common: |
2109 if common: |
2110 nm = cl.nodemap |
2110 hasnode = cl.hasnode |
2111 common = [n for n in common if n in nm] |
2111 common = [n for n in common if hasnode(n)] |
2112 else: |
2112 else: |
2113 common = [nullid] |
2113 common = [nullid] |
2114 if not heads: |
2114 if not heads: |
2115 heads = cl.heads() |
2115 heads = cl.heads() |
2116 return self.getlocalbundle(source, |
2116 return self.getlocalbundle(source, |