comparison tests/test_fetch_mappings.py @ 358:2c0649064455

Author maps: handle lines without = gracefully.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 28 May 2009 09:41:00 +0200
parents 75f082b5897e
children 27e9fea5d114
comparison
equal deleted inserted replaced
357:d19843ac13c9 358:2c0649064455
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>\n")
25 authormap.write("Augie Fackler <durin42@gmail.com>\n")
25 authormap.close() 26 authormap.close()
26 _ui = ui.ui() 27 _ui = ui.ui()
27 _ui.setconfig('hgsubversion', 'stupid', str(stupid)) 28 _ui.setconfig('hgsubversion', 'stupid', str(stupid))
28 _ui.setconfig('hgsubversion', 'authormap', self.authors) 29 _ui.setconfig('hgsubversion', 'authormap', self.authors)
29 commands.clone(_ui, test_util.fileurl(self.repo_path), 30 commands.clone(_ui, test_util.fileurl(self.repo_path),