Patchwork [4,of,5] drawdag: use 'tagsmod.tag' instead of 'repo.tag'

login
register
mail settings
Submitter Pierre-Yves David
Date March 27, 2017, 4:28 p.m.
Message ID <e321a0e656e1020b3d8f.1490632107@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19758/
State Accepted
Headers show

Comments

Pierre-Yves David - March 27, 2017, 4:28 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1490630885 -7200
#      Mon Mar 27 18:08:05 2017 +0200
# Node ID e321a0e656e1020b3d8f57143c5ec346e14705e7
# Parent  7f11598171b4ac200c25b6c72fda9db2e52865e6
# EXP-Topic tags
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r e321a0e656e1
drawdag: use 'tagsmod.tag' instead of 'repo.tag'

The former is about to be deprecated.

Patch

diff --git a/tests/drawdag.py b/tests/drawdag.py
--- a/tests/drawdag.py
+++ b/tests/drawdag.py
@@ -85,6 +85,7 @@  from mercurial import (
     error,
     node,
     scmutil,
+    tags as tagsmod,
 )
 
 cmdtable = {}
@@ -308,4 +309,5 @@  def debugdrawdag(ui, repo, **opts):
         ctx = simplecommitctx(repo, name, pctxs, [name])
         n = ctx.commit()
         committed[name] = n
-        repo.tag(name, n, message=None, user=None, date=None, local=True)
+        tagsmod.tag(repo, name, n, message=None, user=None, date=None,
+                    local=True)