Mercurial > hgsubversion
comparison tests/test_fetch_mappings.py @ 1429:3a723188051e
AuthorMap: make local implementation concerns stop using self.meta
This is part of a series of changes which will let us stop passing
meta into the map layer.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 05 Jun 2016 20:26:17 -0400 |
parents | 94eb844fd4ab |
children | a0ba38def79b |
comparison
equal
deleted
inserted
replaced
1428:da272633997f | 1429:3a723188051e |
---|---|
90 if not os.path.isdir(repopath): | 90 if not os.path.isdir(repopath): |
91 os.makedirs(repopath) | 91 os.makedirs(repopath) |
92 new = open(os.path.join(repopath, 'authors'), 'w') | 92 new = open(os.path.join(repopath, 'authors'), 'w') |
93 new.write(open(orig).read()) | 93 new.write(open(orig).read()) |
94 new.close() | 94 new.close() |
95 test = maps.AuthorMap(self.repo.svnmeta(skiperrorcheck=True)) | 95 meta = self.repo.svnmeta(skiperrorcheck=True) |
96 test = maps.AuthorMap(meta, meta.defaulthost, meta.caseignoreauthors, | |
97 meta.mapauthorscmd, meta.defaultauthors) | |
96 fromself = set(test) | 98 fromself = set(test) |
97 test.load(orig) | 99 test.load(orig) |
98 all_tests = set(test) | 100 all_tests = set(test) |
99 self.assertEqual(fromself.symmetric_difference(all_tests), set()) | 101 self.assertEqual(fromself.symmetric_difference(all_tests), set()) |
100 | 102 |