equal
deleted
inserted
replaced
38 this method combine the "default" requirements that a new repository would |
38 this method combine the "default" requirements that a new repository would |
39 use with the constaint we get from the stream clone content. We keep local |
39 use with the constaint we get from the stream clone content. We keep local |
40 configuration choice when possible. |
40 configuration choice when possible. |
41 """ |
41 """ |
42 requirements = set(default_requirements) |
42 requirements = set(default_requirements) |
43 requirements -= requirementsmod.STREAM_FIXED_REQUIREMENTS |
43 requirements & requirementsmod.STREAM_IGNORABLE_REQUIREMENTS |
44 requirements.update(streamed_requirements) |
44 requirements.update(streamed_requirements) |
45 return requirements |
45 return requirements |
46 |
46 |
47 |
47 |
48 def streamed_requirements(repo): |
48 def streamed_requirements(repo): |
49 """the set of requirement the new clone will have to support |
49 """the set of requirement the new clone will have to support |
50 |
50 |
51 This is used for advertising the stream options and to generate the actual |
51 This is used for advertising the stream options and to generate the actual |
52 stream content.""" |
52 stream content.""" |
53 requiredformats = ( |
53 requiredformats = ( |
54 repo.requirements & requirementsmod.STREAM_FIXED_REQUIREMENTS |
54 repo.requirements - requirementsmod.STREAM_IGNORABLE_REQUIREMENTS |
55 ) |
55 ) |
56 return requiredformats |
56 return requiredformats |
57 |
57 |
58 |
58 |
59 def canperformstreamclone(pullop, bundle2=False): |
59 def canperformstreamclone(pullop, bundle2=False): |