comparison tests/test_util.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 f07bfd66db13
children e9af7eba88db
comparison
equal deleted inserted replaced
815:e62e84a9464b 816:86d124a8768e
233 cp = os.path.commonprefix((os.path.abspath(__file__), modloc)) 233 cp = os.path.commonprefix((os.path.abspath(__file__), modloc))
234 assert cp.rstrip(os.sep) == _rootdir, ( 234 assert cp.rstrip(os.sep) == _rootdir, (
235 'Module location verification failed: hgsubversion was imported ' 235 'Module location verification failed: hgsubversion was imported '
236 'from the wrong path!' 236 'from the wrong path!'
237 ) 237 )
238
239 def hgclone(ui, source, dest, update=True):
240 if getattr(hg, 'peer', None):
241 # Since 1.9 (d976542986d2)
242 src, dest = hg.clone(ui, {}, source, dest, update=update)
243 else:
244 src, dest = hg.clone(ui, source, dest, update=update)
245 return src, dest
238 246
239 class TestBase(unittest.TestCase): 247 class TestBase(unittest.TestCase):
240 def setUp(self): 248 def setUp(self):
241 _verify_our_modules() 249 _verify_our_modules()
242 250