comparison tests/test_utility_commands.py @ 230:4c3bad24f950

rebase: cleanup slightly.
author Augie Fackler <durin42@gmail.com>
date Mon, 30 Mar 2009 16:11:45 -0500
parents 91db8fc049b0
children c34abd2448b7
comparison
equal deleted inserted replaced
229:7f20914e52e8 230:4c3bad24f950
134 {'branch': 'localbranch', }) 134 {'branch': 'localbranch', })
135 self.repo.commitctx(ctx) 135 self.repo.commitctx(ctx)
136 self.assertEqual(self.repo['tip'].branch(), 'localbranch') 136 self.assertEqual(self.repo['tip'].branch(), 'localbranch')
137 beforerebasehash = self.repo['tip'].node() 137 beforerebasehash = self.repo['tip'].node()
138 hg.update(self.repo, 'tip') 138 hg.update(self.repo, 'tip')
139 utility_commands.rebase_commits(ui.ui(), self.repo, os.path.dirname(self.repo.path)) 139 utility_commands.rebase_commits(ui.ui(), self.repo)
140 self.assertEqual(self.repo['tip'].branch(), 'localbranch') 140 self.assertEqual(self.repo['tip'].branch(), 'localbranch')
141 self.assertEqual(self.repo['tip'].parents()[0].parents()[0], self.repo[0]) 141 self.assertEqual(self.repo['tip'].parents()[0].parents()[0], self.repo[0])
142 self.assertNotEqual(beforerebasehash, self.repo['tip'].node()) 142 self.assertNotEqual(beforerebasehash, self.repo['tip'].node())
143 143
144 def test_url_is_normalized(self): 144 def test_url_is_normalized(self):