comparison hgsubversion/maps.py @ 1388:130ced9e371d

maps: make branch map inherit from base map
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:59 -0500
parents b9975bc80bb6
children 44d0c5d73bfd
comparison
equal deleted inserted replaced
1387:b9975bc80bb6 1388:130ced9e371d
408 def _write(self): 408 def _write(self):
409 f = open(self.meta.filemap_file, 'w') 409 f = open(self.meta.filemap_file, 'w')
410 f.write('%s\n' % self.VERSION) 410 f.write('%s\n' % self.VERSION)
411 f.close() 411 f.close()
412 412
413 class BranchMap(dict): 413 class BranchMap(BaseMap):
414 '''Facility for controlled renaming of branch names. Example: 414 '''Facility for controlled renaming of branch names. Example:
415 415
416 oldname = newname 416 oldname = newname
417 other = default 417 other = default
418 418