mercurial/bundlecaches.py
changeset 51558 c4aab3661f25
parent 50712 0913a49e020c
child 51573 4a9d0898bf16
equal deleted inserted replaced
51557:cc44b3df9bb4 51558:c4aab3661f25
   134     b'streamv2': {
   134     b'streamv2': {
   135         b'changegroup': False,
   135         b'changegroup': False,
   136         b'cg.version': b'02',
   136         b'cg.version': b'02',
   137         b'obsolescence': False,
   137         b'obsolescence': False,
   138         b'phases': False,
   138         b'phases': False,
   139         b"streamv2": True,
   139         b"stream": "v2",
   140         b'tagsfnodescache': False,
   140         b'tagsfnodescache': False,
   141         b'revbranchcache': False,
   141         b'revbranchcache': False,
   142     },
   142     },
   143     b'streamv3-exp': {
   143     b'streamv3-exp': {
   144         b'changegroup': False,
   144         b'changegroup': False,
   145         b'cg.version': b'03',
   145         b'cg.version': b'03',
   146         b'obsolescence': False,
   146         b'obsolescence': False,
   147         b'phases': False,
   147         b'phases': False,
   148         b"streamv3-exp": True,
   148         b"stream": "v3-exp",
   149         b'tagsfnodescache': False,
   149         b'tagsfnodescache': False,
   150         b'revbranchcache': False,
   150         b'revbranchcache': False,
   151     },
   151     },
   152     b'packed1': {
   152     b'packed1': {
   153         b'cg.version': b's1',
   153         b'cg.version': b's1',
   386 
   386 
   387     # Stream clone v2
   387     # Stream clone v2
   388     if (
   388     if (
   389         bundlespec.wirecompression == b'UN'
   389         bundlespec.wirecompression == b'UN'
   390         and bundlespec.wireversion == b'02'
   390         and bundlespec.wireversion == b'02'
   391         and (
   391         and bundlespec.contentopts.get(b'stream', None) in (b"v2", b"v3-exp")
   392             bundlespec.contentopts.get(b'streamv2')
       
   393             or bundlespec.contentopts.get(b'streamv3-exp')
       
   394         )
       
   395     ):
   392     ):
   396         return True
   393         return True
   397 
   394 
   398     return False
   395     return False
   399 
   396