mercurial/changegroup.py
changeset 47076 08e26ef4ad35
parent 47075 5554aacd783f
child 47077 119790e1c67c
equal deleted inserted replaced
47075:5554aacd783f 47076:08e26ef4ad35
  1687         # contains both normal and tree manifest at the same time. so using
  1687         # contains both normal and tree manifest at the same time. so using
  1688         # older version to pull data is viable
  1688         # older version to pull data is viable
  1689         #
  1689         #
  1690         # (or even to push subset of history)
  1690         # (or even to push subset of history)
  1691         needv03 = True
  1691         needv03 = True
  1692     has_revlogv2 = requirements.REVLOGV2_REQUIREMENT in repo.requirements
       
  1693     if not has_revlogv2:
       
  1694         versions.discard(b'04')
       
  1695     if not needv03:
  1692     if not needv03:
  1696         versions.discard(b'03')
  1693         versions.discard(b'03')
       
  1694     want_v4 = (
       
  1695         repo.ui.configbool(b'experimental', b'changegroup4')
       
  1696         or requirements.REVLOGV2_REQUIREMENT in repo.requirements
       
  1697     )
       
  1698     if not want_v4:
       
  1699         versions.discard(b'04')
  1697     return versions
  1700     return versions
  1698 
  1701 
  1699 
  1702 
  1700 # Changegroup versions that can be applied to the repo
  1703 # Changegroup versions that can be applied to the repo
  1701 def supportedincomingversions(repo):
  1704 def supportedincomingversions(repo):