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:
Felipe Contreras
2019-06-03 18:16:05 -05:00
parent a16c69a99c
commit aaef56a2a3

View File

@@ -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)