Mercurial > hgsubversion
comparison tests/test_fetch_mappings.py @ 1097:e015cd34168d
authormap: allow case-insensitive authormaps for easier conversions
author | maugustin |
---|---|
date | Tue, 08 Jan 2013 10:44:38 +0100 |
parents | bc71d8c8fde9 |
children | 28116a204b6a |
comparison
equal
deleted
inserted
replaced
1096:691078c03ed9 | 1097:e015cd34168d |
---|---|
91 fromself = set(test) | 91 fromself = set(test) |
92 test.load(orig) | 92 test.load(orig) |
93 all_tests = set(test) | 93 all_tests = set(test) |
94 self.assertEqual(fromself.symmetric_difference(all_tests), set()) | 94 self.assertEqual(fromself.symmetric_difference(all_tests), set()) |
95 | 95 |
96 def test_author_map_caseignore(self): | |
97 repo_path = self.load_svndump('replace_trunk_with_branch.svndump') | |
98 authormap = open(self.authors, 'w') | |
99 authormap.write('augie=Augie Fackler <durin42@gmail.com> # stuffy\n') | |
100 authormap.write("Augie Fackler <durin42@gmail.com>\n") | |
101 authormap.close() | |
102 ui = self.ui() | |
103 ui.setconfig('hgsubversion', 'authormap', self.authors) | |
104 ui.setconfig('hgsubversion', 'caseignoreauthors', True) | |
105 commands.clone(ui, test_util.fileurl(repo_path), | |
106 self.wc_path, authors=self.authors) | |
107 self.assertEqual(self.repo[0].user(), | |
108 'Augie Fackler <durin42@gmail.com>') | |
109 self.assertEqual(self.repo['tip'].user(), | |
110 'evil@5b65bade-98f3-4993-a01f-b7a6710da339') | |
111 | |
96 def _loadwithfilemap(self, svndump, filemapcontent, | 112 def _loadwithfilemap(self, svndump, filemapcontent, |
97 failonmissing=True): | 113 failonmissing=True): |
98 repo_path = self.load_svndump(svndump) | 114 repo_path = self.load_svndump(svndump) |
99 filemap = open(self.filemap, 'w') | 115 filemap = open(self.filemap, 'w') |
100 filemap.write(filemapcontent) | 116 filemap.write(filemapcontent) |