mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-02-01 10:59:04 +01:00
Adjust to Mercurial 4.7 wrt more restricted changectx API
Fixes mnauw/git-remote-hg#18
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# "$GIT_DIR/hg/origin/clone/.hg/".
|
||||
|
||||
from mercurial import hg, ui, bookmarks, context, encoding
|
||||
from mercurial import node, error, extensions, discovery, util
|
||||
from mercurial import node, error, extensions, discovery, util, scmutil
|
||||
from mercurial import changegroup
|
||||
|
||||
import re
|
||||
@@ -629,7 +629,7 @@ def export_ref(repo, name, kind, head):
|
||||
notes.update(pending_revs)
|
||||
|
||||
def export_tag(repo, tag):
|
||||
export_ref(repo, tag, 'tags', repo[hgref(tag)])
|
||||
export_ref(repo, tag, 'tags', scmutil.revsingle(repo, hgref(tag)))
|
||||
|
||||
def export_bookmark(repo, bmark):
|
||||
head = bmarks[hgref(bmark)]
|
||||
|
||||
Reference in New Issue
Block a user