Mercurial > hgsubversion
diff tests/test_fetch_mappings.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 | 7e9d805a0e1f |
children | 1f77bd6ec0e5 |
line wrap: on
line diff
--- a/tests/test_fetch_mappings.py +++ b/tests/test_fetch_mappings.py @@ -245,8 +245,8 @@ class MapTests(test_util.TestBase): ui = self.ui(stupid) src, dest = test_util.hgclone(ui, self.wc_path, self.wc_path + '_clone', update=False) - src = getattr(src, 'local', lambda: src)() - dest = getattr(dest, 'local', lambda: dest)() + src = test_util.getlocalpeer(src) + dest = test_util.getlocalpeer(dest) svncommands.rebuildmeta(ui, dest, args=[test_util.fileurl(repo_path)])