changeset 31676:d761ef24d6e1

drawdag: use 'tagsmod.tag' instead of 'repo.tag' The former is about to be deprecated.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 27 Mar 2017 18:08:05 +0200
parents adace35f931d
children e6fd7930cf0b
files tests/drawdag.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/drawdag.py	Mon Mar 27 16:00:34 2017 +0200
+++ b/tests/drawdag.py	Mon Mar 27 18:08:05 2017 +0200
@@ -85,6 +85,7 @@
     error,
     node,
     scmutil,
+    tags as tagsmod,
 )
 
 cmdtable = {}
@@ -308,4 +309,5 @@
         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)