comparison tests/test_fetch_command.py @ 136:cf6fe8457570

Fix an apparent regression where branch name didn't get properly stored for commits forced on empty branches.
author Augie Fackler <durin42@gmail.com>
date Thu, 11 Dec 2008 17:34:33 -0600
parents e33c7a4bcebb
children 40474f6c1f84
comparison
equal deleted inserted replaced
135:e33c7a4bcebb 136:cf6fe8457570
115 self.assertEqual(repo['tip'].parents()[0].parents()[0], 115 self.assertEqual(repo['tip'].parents()[0].parents()[0],
116 repo['oldest']) 116 repo['oldest'])
117 self.assertEqual(node.hex(repo['tip'].node()), 117 self.assertEqual(node.hex(repo['tip'].node()),
118 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') 118 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c')
119 119
120 def test_propedit_with_nothing_else(self, stupid=False):
121 repo = self._load_fixture_and_fetch('branch_prop_edit.svndump',
122 stupid=stupid)
123 self.assertEqual(repo['tip'].description(), 'Commit bogus propchange.')
124 self.assertEqual(repo['tip'].branch(), 'dev_branch')
125
126 def test_propedit_with_nothing_else_stupid(self):
127 self.test_propedit_with_nothing_else(stupid=True)
128
120 129
121 class TestStupidPull(test_util.TestBase): 130 class TestStupidPull(test_util.TestBase):
122 def test_stupid(self): 131 def test_stupid(self):
123 repo = test_util.load_fixture_and_fetch('two_heads.svndump', 132 repo = test_util.load_fixture_and_fetch('two_heads.svndump',
124 self.repo_path, 133 self.repo_path,