Commit c27c1ac9 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

tags: use the 'tag' function from the 'tags' module in the 'tag' command

There is No need to go through the 'repo' object method anymore.
parent a719f3315366
......@@ -48,6 +48,7 @@ from . import (
server,
sshserver,
streamclone,
tags as tagsmod,
templatekw,
ui as uimod,
util,
......@@ -5172,8 +5173,8 @@ def tag(ui, repo, name1, *names, **opts):
scmutil.revsingle(repo, rev_).rev() == nullrev):
raise error.Abort(_("cannot tag null revision"))
repo.tag(names, r, message, opts.get('local'), opts.get('user'), date,
editor=editor)
tagsmod.tag(repo, names, r, message, opts.get('local'),
opts.get('user'), date, editor=editor)
finally:
release(lock, wlock)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment