comparison tests/test_util.py @ 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 6918f60d0e28
children 5bacb9c63e3e
comparison
equal deleted inserted replaced
922:6b7ac659c855 923:847953806c77
144 144
145 def fileurl(path): 145 def fileurl(path):
146 path = os.path.abspath(path).replace(os.sep, '/') 146 path = os.path.abspath(path).replace(os.sep, '/')
147 drive, path = os.path.splitdrive(path) 147 drive, path = os.path.splitdrive(path)
148 if drive: 148 if drive:
149 drive = '/' + drive 149 # In svn 1.7, the swig svn wrapper returns local svn URLs
150 # with an uppercase drive letter, try to match that to
151 # simplify svn info tests.
152 drive = '/' + drive.upper()
150 url = 'file://%s%s' % (drive, path) 153 url = 'file://%s%s' % (drive, path)
151 return url 154 return url
152 155
153 def testui(stupid=False, layout='auto', startrev=0): 156 def testui(stupid=False, layout='auto', startrev=0):
154 u = ui.ui() 157 u = ui.ui()