diff 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
line wrap: on
line diff
--- a/tests/test_updatemeta.py
+++ b/tests/test_updatemeta.py
@@ -26,8 +26,8 @@ def _do_case(self, name, stupid, single)
     wc2_path = self.wc_path + '_clone'
     u = ui.ui()
     src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False)
-    src = getattr(src, 'local', lambda: src)()
-    dest = getattr(dest, 'local', lambda: dest)()
+    src = test_util.getlocalpeer(src)
+    dest = test_util.getlocalpeer(dest)
 
     # insert a wrapper that prevents calling changectx.children()
     def failfn(orig, ctx):