[PATCH 1 of 3] drawdag: tagsmod.tag() takes a list of names, not a single name
Augie Fackler
raf at durin42.com
Wed Aug 23 14:57:56 UTC 2017
# HG changeset patch
# User Augie Fackler <raf at 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.
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
More information about the Mercurial-devel
mailing list