Mercurial > hgsubversion
comparison tests/test_fetch_mappings.py @ 1442:a0ba38def79b
AuthorMap: no longer take a meta
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 06 Jun 2016 00:46:45 -0400 |
parents | 3a723188051e |
children | 9a6bb3657861 |
comparison
equal
deleted
inserted
replaced
1441:e79ff1a85938 | 1442:a0ba38def79b |
---|---|
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 meta = self.repo.svnmeta(skiperrorcheck=True) | 95 meta = self.repo.svnmeta(skiperrorcheck=True) |
96 test = maps.AuthorMap(meta, meta.defaulthost, meta.caseignoreauthors, | 96 test = maps.AuthorMap( |
97 meta.mapauthorscmd, meta.defaultauthors) | 97 meta.ui, meta.authormap_file, meta.defaulthost, |
98 meta.caseignoreauthors, meta.mapauthorscmd, meta.defaultauthors) | |
98 fromself = set(test) | 99 fromself = set(test) |
99 test.load(orig) | 100 test.load(orig) |
100 all_tests = set(test) | 101 all_tests = set(test) |
101 self.assertEqual(fromself.symmetric_difference(all_tests), set()) | 102 self.assertEqual(fromself.symmetric_difference(all_tests), set()) |
102 | 103 |