comparison tests/comprehensive/test_stupid_pull.py @ 816:86d124a8768e

Fix hg.clone() calls changed by d976542986d2
author Patrick Mezard <pmezard@gmail.com>
date Wed, 15 Jun 2011 14:44:14 +0200
parents 124cd25de4ef
children f28e0f54a6ef
comparison
equal deleted inserted replaced
815:e62e84a9464b 816:86d124a8768e
26 checkout_path = self.repo_path 26 checkout_path = self.repo_path
27 if subdir: 27 if subdir:
28 checkout_path += '/' + subdir 28 checkout_path += '/' + subdir
29 u.setconfig('hgsubversion', 'stupid', '1') 29 u.setconfig('hgsubversion', 'stupid', '1')
30 u.setconfig('hgsubversion', 'layout', layout) 30 u.setconfig('hgsubversion', 'layout', layout)
31 hg.clone(u, test_util.fileurl(checkout_path), wc2_path, update=False) 31 test_util.hgclone(u, test_util.fileurl(checkout_path), wc2_path, update=False)
32 if layout == 'single': 32 if layout == 'single':
33 self.assertEqual(len(self.repo.heads()), 1) 33 self.assertEqual(len(self.repo.heads()), 1)
34 self.repo2 = hg.repository(ui.ui(), wc2_path) 34 self.repo2 = hg.repository(ui.ui(), wc2_path)
35 self.assertEqual(self.repo.heads(), self.repo2.heads()) 35 self.assertEqual(self.repo.heads(), self.repo2.heads())
36 36