Mercurial > hgsubversion
comparison hgsubversion/maps.py @ 1447:a6fa4f3aa826
FileMap: no longer take a meta
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 06 Jun 2016 00:52:37 -0400 |
parents | 2eba84031a78 |
children | cbad7285cbeb |
comparison
equal
deleted
inserted
replaced
1446:2eba84031a78 | 1447:a6fa4f3aa826 |
---|---|
489 | 489 |
490 class FileMap(object): | 490 class FileMap(object): |
491 | 491 |
492 VERSION = 1 | 492 VERSION = 1 |
493 | 493 |
494 def __init__(self, meta): | 494 def __init__(self, ui, filepath): |
495 '''Initialise a new FileMap. | 495 '''Initialise a new FileMap. |
496 | 496 |
497 The ui argument is used to print diagnostic messages. | 497 The ui argument is used to print diagnostic messages. |
498 | 498 |
499 The path argument is the location of the backing store, | 499 The path argument is the location of the backing store, |
500 typically .hg/svn/filemap. | 500 typically .hg/svn/filemap. |
501 ''' | 501 ''' |
502 self._filename = meta.filemap_file | 502 self._filename = filepath |
503 self._ui = meta.ui | 503 self._ui = ui |
504 self.include = {} | 504 self.include = {} |
505 self.exclude = {} | 505 self.exclude = {} |
506 if os.path.isfile(self._filename): | 506 if os.path.isfile(self._filename): |
507 self._load() | 507 self._load() |
508 else: | 508 else: |