comparison hgext/convert/hg.py @ 21634:23b24d6a70c8

convert: rename sink hascommit to hascommitforsplicemap The name 'hascommit' sounds like something generic ... but it might also throw exceptions in specific cases and it is thus (apparently) only useful for splicemap.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 19 May 2014 22:11:14 +0200
parents 6b8daeea638a
children 5f2cc464e502
comparison
equal deleted inserted replaced
21633:0ae44984b8d9 21634:23b24d6a70c8
251 destmarks = self.repo._bookmarks 251 destmarks = self.repo._bookmarks
252 for bookmark in updatedbookmark: 252 for bookmark in updatedbookmark:
253 destmarks[bookmark] = bin(updatedbookmark[bookmark]) 253 destmarks[bookmark] = bin(updatedbookmark[bookmark])
254 destmarks.write() 254 destmarks.write()
255 255
256 def hascommit(self, rev): 256 def hascommitforsplicemap(self, rev):
257 if rev not in self.repo and self.clonebranches: 257 if rev not in self.repo and self.clonebranches:
258 raise util.Abort(_('revision %s not found in destination ' 258 raise util.Abort(_('revision %s not found in destination '
259 'repository (lookups with clonebranches=true ' 259 'repository (lookups with clonebranches=true '
260 'are not implemented)') % rev) 260 'are not implemented)') % rev)
261 return rev in self.repo 261 return rev in self.repo