diff mercurial/bundle2.py @ 33911:126eae7dae74

bundle2: add debug info about the number of stream params Seems like the %i was never substituted.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 27 Jun 2017 14:38:00 -0700 (2017-06-27)
parents 0aae80d14fed
children 0224820688ac
line wrap: on
line diff
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -349,7 +349,7 @@
     if repo.ui.debugflag:
         msg = ['bundle2-input-bundle:']
         if unbundler.params:
-            msg.append(' %i params')
+            msg.append(' %i params' % len(unbundler.params))
         if op.gettransaction is None or op.gettransaction is _notransaction:
             msg.append(' no-transaction')
         else: