comparison tests/test_rebuildmeta.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 e1e2af66953d
children f28e0f54a6ef
comparison
equal deleted inserted replaced
815:e62e84a9464b 816:86d124a8768e
19 layout = 'single' 19 layout = 'single'
20 self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid, layout=layout) 20 self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid, layout=layout)
21 assert len(self.repo) > 0 21 assert len(self.repo) > 0
22 wc2_path = self.wc_path + '_clone' 22 wc2_path = self.wc_path + '_clone'
23 u = ui.ui() 23 u = ui.ui()
24 src, dest = hg.clone(u, self.wc_path, wc2_path, update=False) 24 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False)
25 25
26 # insert a wrapper that prevents calling changectx.children() 26 # insert a wrapper that prevents calling changectx.children()
27 def failfn(orig, ctx): 27 def failfn(orig, ctx):
28 self.fail('calling %s is forbidden; it can cause massive slowdowns ' 28 self.fail('calling %s is forbidden; it can cause massive slowdowns '
29 'when rebuilding large repositories' % orig) 29 'when rebuilding large repositories' % orig)