Don't call repo[tag] directly

Deprecated in 4.6, gone in 4.7.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2019-06-02 00:05:20 -05:00
parent aaef56a2a3
commit c95fba3c18

View File

@@ -619,7 +619,8 @@ def export_ref(repo, name, kind, head):
marks.set_tip(ename, head.hex())
def export_tag(repo, tag):
export_ref(repo, tag, 'tags', repo[hgref(tag)])
node = repo.tags().get(hgref(tag))
export_ref(repo, tag, 'tags', repo[node])
def export_bookmark(repo, bmark):
head = bmarks[hgref(bmark)]