mercurial/localrepo.py
changeset 18086 739c88ff043c
parent 18073 e411fd79ca69
child 18092 ff36650e4238
equal deleted inserted replaced
18085:4c53f015564f 18086:739c88ff043c
  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,