comparison tests/test_fetch_mappings.py @ 360:27e9fea5d114

Author maps: strip comments.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 28 May 2009 09:44:47 +0200
parents 2c0649064455
children 2851b81c65ce
comparison
equal deleted inserted replaced
359:e74321f6f8a1 360:27e9fea5d114
19 return os.path.join(self.tmpdir, 'filemap') 19 return os.path.join(self.tmpdir, 'filemap')
20 20
21 def test_author_map(self, stupid=False): 21 def test_author_map(self, stupid=False):
22 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump') 22 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump')
23 authormap = open(self.authors, 'w') 23 authormap = open(self.authors, 'w')
24 authormap.write("Augie=Augie Fackler <durin42@gmail.com>\n") 24 authormap.write('Augie=Augie Fackler <durin42@gmail.com> # stuffy\n')
25 authormap.write("Augie Fackler <durin42@gmail.com>\n") 25 authormap.write("Augie Fackler <durin42@gmail.com>\n")
26 authormap.close() 26 authormap.close()
27 _ui = ui.ui() 27 _ui = ui.ui()
28 _ui.setconfig('hgsubversion', 'stupid', str(stupid)) 28 _ui.setconfig('hgsubversion', 'stupid', str(stupid))
29 _ui.setconfig('hgsubversion', 'authormap', self.authors) 29 _ui.setconfig('hgsubversion', 'authormap', self.authors)