changeset 26470:4b5647d9ee13

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 04 Oct 2015 12:07:01 -0700
parents fb743268510e
children 41dd7b2c7e15
files mercurial/streamclone.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/streamclone.py	Sun Oct 04 19:06:06 2015 -0700
+++ b/mercurial/streamclone.py	Sun Oct 04 12:07:01 2015 -0700
@@ -113,6 +113,8 @@
     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 @@
     """
     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