Mercurial > hgsubversion
diff tests/test_util.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 | 847953806c77 |
children | d6db289f1548 |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -104,6 +104,11 @@ subdir = {'truncatedhistory.svndump': '/ FIXTURES = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'fixtures') +def getlocalpeer(repo): + localrepo = getattr(repo, 'local', lambda: repo)() + if isinstance(localrepo, bool): + localrepo = repo + return localrepo def _makeskip(name, message): if SkipTest: