Mercurial > hgsubversion
changeset 923:847953806c77
test_util: make repourl() return upper-cased drive letters
The SWIG bindings return local svn URLs with upper-case drive letters.
Doing the same in repourl() makes the svn info tests URLs match on
Windows.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 26 Aug 2012 17:49:58 +0200 |
parents | 6b7ac659c855 |
children | e252f9355933 |
files | tests/test_util.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -146,7 +146,10 @@ def fileurl(path): path = os.path.abspath(path).replace(os.sep, '/') drive, path = os.path.splitdrive(path) if drive: - drive = '/' + drive + # In svn 1.7, the swig svn wrapper returns local svn URLs + # with an uppercase drive letter, try to match that to + # simplify svn info tests. + drive = '/' + drive.upper() url = 'file://%s%s' % (drive, path) return url