diff mercurial/wireproto.py @ 25339:c50655b9c856

listkey: display the size of the listkey payload in a debug message This is a useful information to have in general and we already have debug output related to listkeys. I'm planning to play around with massive amount of phases roots and bookmarks so having this data in debug will be very useful. This already got me to spot that one of the Logilab's review repo is exchanging 65KB of phases data during each exchanges.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 28 May 2015 23:49:19 -0700
parents a415e94fd34f
children 30ab130af221
line wrap: on
line diff
--- a/mercurial/wireproto.py	Fri May 29 00:09:36 2015 -0700
+++ b/mercurial/wireproto.py	Thu May 28 23:49:19 2015 -0700
@@ -324,6 +324,8 @@
         self.ui.debug('preparing listkeys for "%s"\n' % namespace)
         yield {'namespace': encoding.fromlocal(namespace)}, f
         d = f.value
+        self.ui.debug('received listkey for "%s": %i bytes\n'
+                      % (namespace, len(d)))
         yield pushkeymod.decodekeys(d)
 
     def stream_out(self):