Patchwork [1,of,3] drawdag: tagsmod.tag() takes a list of names, not a single name

login
register
mail settings
Submitter Augie Fackler
Date Aug. 23, 2017, 2:57 p.m.
Message ID <9445a48c8752fafbfdbd.1503500276@imladris.local>
Download mbox | patch
Permalink /patch/23240/
State Changes Requested
Headers show

Comments

Augie Fackler - Aug. 23, 2017, 2:57 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503465841 14400
#      Wed Aug 23 01:24:01 2017 -0400
# Node ID 9445a48c8752fafbfdbd5a5c51378119e1f3ea23
# Parent  5aaccd0d020b082f60c42c64165c304b64c3c3fb
drawdag: tagsmod.tag() takes a list of names, not a single name

We were getting lucky on Python 2 since we have only one-byte names,
but on Python 3 badness was happening.

Patch

diff --git a/tests/drawdag.py b/tests/drawdag.py
--- a/tests/drawdag.py
+++ b/tests/drawdag.py
@@ -346,7 +346,7 @@  def debugdrawdag(ui, repo, **opts):
         ctx = simplecommitctx(repo, name, pctxs, added)
         n = ctx.commit()
         committed[name] = n
-        tagsmod.tag(repo, name, n, message=None, user=None, date=None,
+        tagsmod.tag(repo, [name], n, message=None, user=None, date=None,
                     local=True)
 
     # handle special comments