[PATCH 2 of 2] bundle2: add debug info about the number of stream params

Siddharth Agarwal sid0 at fb.com
Tue Jun 27 17:38:43 EDT 2017


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1498599480 25200
#      Tue Jun 27 14:38:00 2017 -0700
# Node ID d3c71b4e989d6db9e65469c930755a38b4994ae7
# Parent  8b59a6d6f77927cc7b40b282056278829ca398b3
bundle2: add debug info about the number of stream params

Seems like the %i was never substituted.

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -349,7 +349,7 @@ def processbundle(repo, unbundler, trans
     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:


More information about the Mercurial-devel mailing list