comparison tests/comprehensive/test_stupid_pull.py @ 347:537de0300510

Remove the 'outgoing' wrapper, and use the Mercurial infrastructure instead.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 May 2009 15:12:31 +0200
parents ffccf0080e54
children 36d26e158748
comparison
equal deleted inserted replaced
346:4b992ebdecc6 347:537de0300510
16 wc2_path = self.wc_path + '_stupid' 16 wc2_path = self.wc_path + '_stupid'
17 u = ui.ui() 17 u = ui.ui()
18 checkout_path = self.repo_path 18 checkout_path = self.repo_path
19 if subdir: 19 if subdir:
20 checkout_path += '/' + subdir 20 checkout_path += '/' + subdir
21 wrappers.clone(None, ui.ui(), source=test_util.fileurl(checkout_path), 21 u.setconfig('hgsubversion', 'stupid', '1')
22 dest=wc2_path, stupid=True, noupdate=True) 22 hg.clone(u, test_util.fileurl(checkout_path), wc2_path, update=False)
23 self.repo2 = hg.repository(ui.ui(), wc2_path) 23 self.repo2 = hg.repository(ui.ui(), wc2_path)
24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) 24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags())
25 self.assertEqual(pickle.load(open(os.path.join(self.wc_path, '.hg', 'svn', 'tag_info'))), 25 self.assertEqual(pickle.load(open(os.path.join(self.wc_path, '.hg', 'svn', 'tag_info'))),
26 pickle.load(open(os.path.join(wc2_path, '.hg', 'svn', 'tag_info')))) 26 pickle.load(open(os.path.join(wc2_path, '.hg', 'svn', 'tag_info'))))
27 27