Patchwork D5739: montone: fix addition to list by using .append() instead of '+'

login
register
mail settings
Submitter phabricator
Date Feb. 2, 2019, 12:51 a.m.
Message ID <73f1f966df2fe340a179f532d64fe6ff@localhost.localdomain>
Download mbox | patch
Permalink /patch/38306/
State Not Applicable
Headers show

Comments

phabricator - Feb. 2, 2019, 12:51 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa97e000b63c8: montone: fix addition to list by using .append() instead of &#039;+&#039; (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5739?vs=13677&id=13682

REVISION DETAIL
  https://phab.mercurial-scm.org/D5739

AFFECTED FILES
  hgext/convert/monotone.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel

Patch

diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py
--- a/hgext/convert/monotone.py
+++ b/hgext/convert/monotone.py
@@ -102,7 +102,7 @@ 
 
         command.append('l')
         for arg in args:
-            command += "%d:%s" % (len(arg), arg)
+            command.append("%d:%s" % (len(arg), arg))
         command.append('e')
         command = ''.join(command)