mercurial/exchange.py
changeset 26687 6a854f558926
parent 26672 90df14eb3d0e
child 26688 7394536338bb
equal deleted inserted replaced
26686:3e7f675628ad 26687:6a854f558926
  1675         m.append(attrs)
  1675         m.append(attrs)
  1676 
  1676 
  1677     return m
  1677     return m
  1678 
  1678 
  1679 def filterclonebundleentries(repo, entries):
  1679 def filterclonebundleentries(repo, entries):
       
  1680     """Remove incompatible clone bundle manifest entries.
       
  1681 
       
  1682     Accepts a list of entries parsed with ``parseclonebundlesmanifest``
       
  1683     and returns a new list consisting of only the entries that this client
       
  1684     should be able to apply.
       
  1685 
       
  1686     There is no guarantee we'll be able to apply all returned entries because
       
  1687     the metadata we use to filter on may be missing or wrong.
       
  1688     """
  1680     newentries = []
  1689     newentries = []
  1681     for entry in entries:
  1690     for entry in entries:
  1682         spec = entry.get('BUNDLESPEC')
  1691         spec = entry.get('BUNDLESPEC')
  1683         if spec:
  1692         if spec:
  1684             try:
  1693             try: