##// END OF EJS Templates
mercurial: use tags module as repo function is deprecated as of 4.2
marcink -
r274:6d90cc98 default
parent child Browse files
Show More
@@ -33,8 +33,8 b' from vcsserver.hgcompat import ('
33 33 archival, bin, clone, config as hgconfig, diffopts, hex,
34 34 hg_url as url_parser, httpbasicauthhandler, httpdigestauthhandler,
35 35 httppeer, localrepository, match, memctx, exchange, memfilectx, nullrev,
36 patch, peer, revrange, ui, Abort, LookupError, RepoError, RepoLookupError,
37 InterventionRequired, RequirementError)
36 patch, peer, revrange, ui, hg_tag, Abort, LookupError, RepoError,
37 RepoLookupError, InterventionRequired, RequirementError)
38 38
39 39 log = logging.getLogger(__name__)
40 40
@@ -629,7 +629,7 b' class HgRemote(object):'
629 629
630 630 date = (tag_time, tag_timezone)
631 631 try:
632 repo.tag(name, node, message, local, user, date)
632 hg_tag.tag(repo, name, node, message, local, user, date)
633 633 except Abort as e:
634 634 log.exception("Tag operation aborted")
635 635 # Exception can contain unicode which we convert
@@ -36,6 +36,7 b' from mercurial import unionrepo'
36 36 from mercurial import localrepo
37 37 from mercurial import merge as hg_merge
38 38 from mercurial import subrepo
39 from mercurial import tags as hg_tag
39 40
40 41 from mercurial.commands import clone, nullid, pull
41 42 from mercurial.context import memctx, memfilectx
General Comments 0
You need to be logged in to leave comments. Login now