drawdag: tagsmod.tag() takes a list of names, not a single name
authorAugie Fackler <raf@durin42.com>
Wed, 23 Aug 2017 01:24:01 -0400
changeset 34205 6c408bfa2dab
parent 34204 bab82c43c065
child 34206 1e71dddc10a2
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.
tests/drawdag.py
--- a/tests/drawdag.py	Wed Aug 23 01:22:59 2017 -0400
+++ b/tests/drawdag.py	Wed Aug 23 01:24:01 2017 -0400
@@ -346,7 +346,7 @@
         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