hgext/convert/hg.py
changeset 17922 7f5dab94e48c
parent 16867 1093ad1e8903
child 18373 687ed69f6fdf
equal deleted inserted replaced
17921:4ac9cf3d810c 17922:7f5dab94e48c
   217     def putbookmarks(self, updatedbookmark):
   217     def putbookmarks(self, updatedbookmark):
   218         if not len(updatedbookmark):
   218         if not len(updatedbookmark):
   219             return
   219             return
   220 
   220 
   221         self.ui.status(_("updating bookmarks\n"))
   221         self.ui.status(_("updating bookmarks\n"))
       
   222         destmarks = self.repo._bookmarks
   222         for bookmark in updatedbookmark:
   223         for bookmark in updatedbookmark:
   223             self.repo._bookmarks[bookmark] = bin(updatedbookmark[bookmark])
   224             destmarks[bookmark] = bin(updatedbookmark[bookmark])
   224             bookmarks.write(self.repo)
   225         destmarks.write()
   225 
   226 
   226     def hascommit(self, rev):
   227     def hascommit(self, rev):
   227         if rev not in self.repo and self.clonebranches:
   228         if rev not in self.repo and self.clonebranches:
   228             raise util.Abort(_('revision %s not found in destination '
   229             raise util.Abort(_('revision %s not found in destination '
   229                                'repository (lookups with clonebranches=true '
   230                                'repository (lookups with clonebranches=true '