Skip to content
Snippets Groups Projects
  • Martin von Zweigbergk's avatar
    88609cfa
    changegroup: fix pulling to treemanifest repo from flat repo (issue5066) · 88609cfa
    Martin von Zweigbergk authored
    In c0f11347b107 (changegroup: don't support versions 01 and 02 with
    treemanifests, 2016-01-19), I stopped supporting use of cg1 and cg2
    with treemanifest repos. What I had not considered was that it's
    perfectly safe to pull *to* a treemanifest repo using any changegroup
    version. As reported in issue5066, I therefore broke pull from old
    repos into a treemanifest repo. It was not covered by the test case,
    because that pulled from a local repo while enabling treemanifests,
    which enabled treemanifests on the source repo as well. After
    switching to pulling via HTTP, it breaks.
    
    Fix by splitting up changegroup.supportedversions() into
    supportedincomingversions() and supportedoutgoingversions().
    88609cfa
    History
    changegroup: fix pulling to treemanifest repo from flat repo (issue5066)
    Martin von Zweigbergk authored
    In c0f11347b107 (changegroup: don't support versions 01 and 02 with
    treemanifests, 2016-01-19), I stopped supporting use of cg1 and cg2
    with treemanifest repos. What I had not considered was that it's
    perfectly safe to pull *to* a treemanifest repo using any changegroup
    version. As reported in issue5066, I therefore broke pull from old
    repos into a treemanifest repo. It was not covered by the test case,
    because that pulled from a local repo while enabling treemanifests,
    which enabled treemanifests on the source repo as well. After
    switching to pulling via HTTP, it breaks.
    
    Fix by splitting up changegroup.supportedversions() into
    supportedincomingversions() and supportedoutgoingversions().