hgext/remotefilelog/__init__.py
changeset 50524 58adcabc295f
parent 48875 6000f5b25c9b
child 50789 cbd1da102417
equal deleted inserted replaced
50523:a6543983b8f4 50524:58adcabc295f
   406         def canperformstreamclone(orig, pullop, bundle2=False):
   406         def canperformstreamclone(orig, pullop, bundle2=False):
   407             # remotefilelog is currently incompatible with the
   407             # remotefilelog is currently incompatible with the
   408             # bundle2 flavor of streamclones, so force us to use
   408             # bundle2 flavor of streamclones, so force us to use
   409             # v1 instead.
   409             # v1 instead.
   410             if b'v2' in pullop.remotebundle2caps.get(b'stream', []):
   410             if b'v2' in pullop.remotebundle2caps.get(b'stream', []):
   411                 pullop.remotebundle2caps[b'stream'] = [
   411                 pullop.remotebundle2caps[b'stream'] = []
   412                     c for c in pullop.remotebundle2caps[b'stream'] if c != b'v2'
       
   413                 ]
       
   414             if bundle2:
   412             if bundle2:
   415                 return False, None
   413                 return False, None
   416             supported, requirements = orig(pullop, bundle2=bundle2)
   414             supported, requirements = orig(pullop, bundle2=bundle2)
   417             if requirements is not None:
   415             if requirements is not None:
   418                 requirements.add(constants.SHALLOWREPO_REQUIREMENT)
   416                 requirements.add(constants.SHALLOWREPO_REQUIREMENT)