Mercurial > hgsubversion
comparison tests/test_push_command.py @ 735:c2b9e08ecf10
maps: map a missing author to '(no author)'
"None" doesn't really make much sense, so we use what 'svn log' shows
instead. This also fixes mapping this author to something else.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 09 Oct 2010 16:20:52 -0500 |
parents | 4b55fb6d6847 |
children | 86d124a8768e |
comparison
equal
deleted
inserted
replaced
734:e24fb3e27ec9 | 735:c2b9e08ecf10 |
---|---|
129 self.assertEqual(tip.parents()[0].node(), expected_parent) | 129 self.assertEqual(tip.parents()[0].node(), expected_parent) |
130 self.assertEqual(tip['adding_file'].data(), 'foo') | 130 self.assertEqual(tip['adding_file'].data(), 'foo') |
131 self.assertEqual(tip.branch(), 'default') | 131 self.assertEqual(tip.branch(), 'default') |
132 # unintended behaviour: | 132 # unintended behaviour: |
133 self.assertNotEqual('an_author', tip.user()) | 133 self.assertNotEqual('an_author', tip.user()) |
134 self.assertEqual('None', tip.user().rsplit('@', 1)[0]) | 134 self.assertEqual('(no author)', tip.user().rsplit('@', 1)[0]) |
135 finally: | 135 finally: |
136 # TODO: use svnserve.kill() in Python >2.5 | 136 # TODO: use svnserve.kill() in Python >2.5 |
137 test_util.kill_process(svnserve) | 137 test_util.kill_process(svnserve) |
138 | 138 |
139 def test_push_over_svnserve(self): | 139 def test_push_over_svnserve(self): |