# HG changeset patch # User Boris Feld # Date 2017-07-10 15:30:20 # Node ID a050d37c2c702d7ffdfbaf9dadbb021eca035c91 # Parent af402f11cb9d56bff989edceca8482cbc6c46d07 bookmark: use 'applychanges' in the convert extension diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py --- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -425,9 +425,9 @@ class mercurial_sink(common.converter_si tr = self.repo.transaction('bookmark') self.ui.status(_("updating bookmarks\n")) destmarks = self.repo._bookmarks - for bookmark in updatedbookmark: - destmarks[bookmark] = nodemod.bin(updatedbookmark[bookmark]) - destmarks.recordchange(tr) + changes = [(bookmark, nodemod.bin(updatedbookmark[bookmark])) + for bookmark in updatedbookmark] + destmarks.applychanges(self.repo, tr, changes) tr.close() finally: lockmod.release(lock, wlock, tr)