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