Comments
Patch
@@ -1065,8 +1065,11 @@ def _pullbundle2(pullop):
"""pull data using bundle2
For now, the only supported data are changegroup."""
kwargs = {'bundlecaps': caps20to10(pullop.repo)}
+
+ streaming, streamreqs = streamclone.canperformstreamclone(pullop)
+
# pulling changegroup
pullop.stepsdone.add('changegroup')
kwargs['common'] = pullop.common
@@ -1077,9 +1080,11 @@ def _pullbundle2(pullop):
if pullop.remotebookmarks is None:
# make sure to always includes bookmark data when migrating
# `hg incoming --bundle` to using this function.
kwargs['listkeys'].append('bookmarks')
- if not pullop.fetch:
+ if streaming:
+ pullop.repo.ui.status(_('streaming all changes\n'))
+ elif not pullop.fetch:
pullop.repo.ui.status(_("no changes found\n"))
pullop.cgresult = 0
else:
if pullop.heads is None and list(pullop.common) == [nullid]: