mercurial/exchange.py
changeset 26756 9e272a96f764
parent 26732 69ac9aebbc55
child 26759 c0f475ac997e
--- a/mercurial/exchange.py	Sat Oct 17 11:14:52 2015 -0700
+++ b/mercurial/exchange.py	Thu Oct 15 13:00:45 2015 -0700
@@ -25,6 +25,7 @@
 # Maps bundle version human names to changegroup versions.
 _bundlespeccgversions = {'v1': '01',
                          'v2': '02',
+                         'packed1': 's1',
                          'bundle2': '02', #legacy
                         }
 
@@ -87,7 +88,10 @@
             if 'generaldelta' in repo.requirements:
                 version = 'v2'
         elif spec in _bundlespeccgversions:
-            compression = 'bzip2'
+            if spec == 'packed1':
+                compression = 'none'
+            else:
+                compression = 'bzip2'
             version = spec
         else:
             raise error.UnsupportedBundleSpecification(
@@ -121,6 +125,8 @@
         return changegroup.cg1unpacker(fh, alg)
     elif version.startswith('2'):
         return bundle2.getunbundler(ui, fh, magicstring=magic + version)
+    elif version == 'S1':
+        return streamclone.streamcloneapplier(fh)
     else:
         raise error.Abort(_('%s: unknown bundle version %s') % (fname, version))