comparison tests/test_updatemeta.py @ 930:5bacb9c63e3e

Fix more peer breakage with old hg versions
author Patrick Mezard <patrick@mezard.eu>
date Mon, 10 Sep 2012 22:42:49 +0200
parents 6b7ac659c855
children
comparison
equal deleted inserted replaced
929:8417be758047 930:5bacb9c63e3e
24 layout=layout) 24 layout=layout)
25 assert len(self.repo) > 0 25 assert len(self.repo) > 0
26 wc2_path = self.wc_path + '_clone' 26 wc2_path = self.wc_path + '_clone'
27 u = ui.ui() 27 u = ui.ui()
28 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False) 28 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False)
29 src = getattr(src, 'local', lambda: src)() 29 src = test_util.getlocalpeer(src)
30 dest = getattr(dest, 'local', lambda: dest)() 30 dest = test_util.getlocalpeer(dest)
31 31
32 # insert a wrapper that prevents calling changectx.children() 32 # insert a wrapper that prevents calling changectx.children()
33 def failfn(orig, ctx): 33 def failfn(orig, ctx):
34 self.fail('calling %s is forbidden; it can cause massive slowdowns ' 34 self.fail('calling %s is forbidden; it can cause massive slowdowns '
35 'when rebuilding large repositories' % orig) 35 'when rebuilding large repositories' % orig)