hgext/convert/hg.py
changeset 17922 7f5dab94e48c
parent 16867 1093ad1e8903
child 18373 687ed69f6fdf
--- a/hgext/convert/hg.py	Fri Nov 09 14:49:30 2012 -0800
+++ b/hgext/convert/hg.py	Wed Nov 07 16:21:39 2012 -0600
@@ -219,9 +219,10 @@
             return
 
         self.ui.status(_("updating bookmarks\n"))
+        destmarks = self.repo._bookmarks
         for bookmark in updatedbookmark:
-            self.repo._bookmarks[bookmark] = bin(updatedbookmark[bookmark])
-            bookmarks.write(self.repo)
+            destmarks[bookmark] = bin(updatedbookmark[bookmark])
+        destmarks.write()
 
     def hascommit(self, rev):
         if rev not in self.repo and self.clonebranches: