mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-01 17:15:49 +01:00
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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user