changeset 21643:75ff093d2763

exchange: reinsert comment in the right place Unrelated new code was inserted between the original comment and the related code block.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 22 May 2014 12:58:07 -0700
parents 76a347bcdb33
children 17755dd8c509
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Thu May 29 16:01:39 2014 -0700
+++ b/mercurial/exchange.py	Thu May 22 12:58:07 2014 -0700
@@ -208,13 +208,13 @@
 
     The only currently supported type of data is changegroup but this will
     evolve in the future."""
-    # Send known head to the server for race detection.
     capsblob = urllib.unquote(pushop.remote.capable('bundle2-exp'))
     caps = bundle2.decodecaps(capsblob)
     bundler = bundle2.bundle20(pushop.ui, caps)
     # create reply capability
     capsblob = bundle2.encodecaps(pushop.repo.bundle2caps)
     bundler.newpart('b2x:replycaps', data=capsblob)
+    # Send known heads to the server for race detection.
     if not pushop.force:
         bundler.newpart('B2X:CHECK:HEADS', data=iter(pushop.remoteheads))
     extrainfo = _pushbundle2extraparts(pushop, bundler)