diff mercurial/exchange.py @ 26761:8270ee357dd9

exchange: support streaming clone bundles in clone bundles Now that we have support for detecting compatible stream clone bundles in bundle specifications, we can safely add support for applying stream clone bundles to the clone bundles feature.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 17 Oct 2015 11:37:08 -0700
parents a18ee7da38c2
children aaa33ec3c951
line wrap: on
line diff
--- a/mercurial/exchange.py	Sat Oct 17 10:26:34 2015 -0700
+++ b/mercurial/exchange.py	Sat Oct 17 11:37:08 2015 -0700
@@ -1832,6 +1832,8 @@
 
                 if isinstance(cg, bundle2.unbundle20):
                     bundle2.processbundle(repo, cg, lambda: tr)
+                elif isinstance(cg, streamclone.streamcloneapplier):
+                    cg.apply(repo)
                 else:
                     cg.apply(repo, 'clonebundles', url)
                 tr.close()