mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-01 17:15:49 +01:00
Use marks.applychange()
Since 4.3 bookmarks are updated with applychanges() and since 4.6 anything else is deprecated. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -376,6 +376,9 @@ def updatebookmarks(repo, peer):
|
||||
try:
|
||||
wlock = repo.wlock()
|
||||
tr = repo.transaction('bookmark')
|
||||
if check_version(4, 3):
|
||||
localmarks.applychanges(repo, tr, changes.items())
|
||||
else:
|
||||
localmarks.update(changes)
|
||||
if check_version(3, 2):
|
||||
localmarks.recordchange(tr)
|
||||
|
||||
Reference in New Issue
Block a user