equal
deleted
inserted
replaced
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 ' |