mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-03-22 01:21:30 +01:00
Adjust to Mercurial 4.6 wrt bookmarks
... as modified in cd23423029287e299d65bbece497ff09a2a673f4
This commit is contained in:
@@ -403,6 +403,13 @@ def updatebookmarks(repo, peer):
|
||||
if not remotemarks:
|
||||
return
|
||||
|
||||
# use a higher level API from now on than the lower one below
|
||||
if check_version(4,6):
|
||||
for k, v in remotemarks.iteritems():
|
||||
old = hghex(localmarks.get(k, ''))
|
||||
bookmarks.pushbookmark(repo, k, old, v)
|
||||
return
|
||||
|
||||
for k, v in remotemarks.iteritems():
|
||||
localmarks[k] = hgbin(v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user