comparison tests/test_fetch_command.py @ 851:9ce00cb1d676

Merge alternate tunnel schemes.
author Augie Fackler <durin42@gmail.com>
date Sat, 25 Feb 2012 14:51:22 -0600
parents 312b37bc5e20
children 04729f3a3d17
comparison
equal deleted inserted replaced
850:d3bc067c0f72 851:9ce00cb1d676
163 163
164 ui = self.ui(stupid=stupid) 164 ui = self.ui(stupid=stupid)
165 165
166 commands.clone(ui, repo_url + subdir, wc_path) 166 commands.clone(ui, repo_url + subdir, wc_path)
167 commands.clone(ui, repo_url + quoted_subdir, wc2_path) 167 commands.clone(ui, repo_url + quoted_subdir, wc2_path)
168 repo = hg.repository(ui, wc_path) 168 repo = hg.repository(ui, wc_path)
169 repo2 = hg.repository(ui, wc2_path) 169 repo2 = hg.repository(ui, wc2_path)
170 170
171 self.assertEqual(repo['tip'].extra()['convert_revision'], 171 self.assertEqual(repo['tip'].extra()['convert_revision'],
172 repo2['tip'].extra()['convert_revision']) 172 repo2['tip'].extra()['convert_revision'])
173 self.assertEqual(len(repo), len(repo2)) 173 self.assertEqual(len(repo), len(repo2))
222 repo['oldest']) 222 repo['oldest'])
223 self.assertEqual(node.hex(repo['tip'].node()), 223 self.assertEqual(node.hex(repo['tip'].node()),
224 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7') 224 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7')
225 225
226 def suite(): 226 def suite():
227 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), 227 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),
228 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), 228 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull),
229 ] 229 ]
230 return unittest.TestSuite(all) 230 return unittest.TestSuite(all_tests)