hgext/convert/hg.py
changeset 26973 fdd63acf3215
parent 26587 56b2bcea2529
child 26974 4b5dc0d9e899
equal deleted inserted replaced
26972:4b0c3df5d635 26973:fdd63acf3215
   408         self.filemapmode = active
   408         self.filemapmode = active
   409 
   409 
   410     def putbookmarks(self, updatedbookmark):
   410     def putbookmarks(self, updatedbookmark):
   411         if not len(updatedbookmark):
   411         if not len(updatedbookmark):
   412             return
   412             return
   413 
   413         if True:
   414         self.ui.status(_("updating bookmarks\n"))
   414             self.ui.status(_("updating bookmarks\n"))
   415         destmarks = self.repo._bookmarks
   415             destmarks = self.repo._bookmarks
   416         for bookmark in updatedbookmark:
   416             for bookmark in updatedbookmark:
   417             destmarks[bookmark] = bin(updatedbookmark[bookmark])
   417                 destmarks[bookmark] = bin(updatedbookmark[bookmark])
   418         destmarks.write()
   418             destmarks.write()
   419 
   419 
   420     def hascommitfrommap(self, rev):
   420     def hascommitfrommap(self, rev):
   421         # the exact semantics of clonebranches is unclear so we can't say no
   421         # the exact semantics of clonebranches is unclear so we can't say no
   422         return rev in self.repo or self.clonebranches
   422         return rev in self.repo or self.clonebranches
   423 
   423