# HG changeset patch # User Gregory Szorc # Date 2015-10-04 19:07:01 # Node ID 4b5647d9ee131ae3d779527e183aebeae34edb90 # Parent fb743268510e42a3a5d71f24117597de26119d2a streamclone: move "streaming all changes" message location Previously, the message was printed after we requested and started processing the remote stream. This seems like something that we should do before calling out to the remote. Moving it also makes it easier to deal with the bundle2 implementation. diff --git a/mercurial/streamclone.py b/mercurial/streamclone.py --- a/mercurial/streamclone.py +++ b/mercurial/streamclone.py @@ -113,6 +113,8 @@ def maybeperformlegacystreamclone(pullop if remote.capable('branchmap'): rbranchmap = remote.branchmap() + repo.ui.status(_('streaming all changes\n')) + fp = remote.stream_out() l = fp.readline() try: @@ -245,7 +247,6 @@ def consumev1(repo, fp, filecount, bytec """ lock = repo.lock() try: - repo.ui.status(_('streaming all changes\n')) repo.ui.status(_('%d files to transfer, %s of data\n') % (filecount, util.bytecount(bytecount))) handled_bytes = 0