Mercurial > hgsubversion
comparison tests/test_util.py @ 522:60bf433647e7
test_util: fix Windows test URLs
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 20 Jan 2010 20:50:59 +0100 |
parents | f089f46729ee |
children | 2be9f14bd23f |
comparison
equal
deleted
inserted
replaced
521:839734dfb5c7 | 522:60bf433647e7 |
---|---|
86 def filtermanifest(manifest): | 86 def filtermanifest(manifest): |
87 return filter(lambda x: x not in ('.hgtags', '.hgsvnexternals', ), | 87 return filter(lambda x: x not in ('.hgtags', '.hgsvnexternals', ), |
88 manifest) | 88 manifest) |
89 | 89 |
90 def fileurl(path): | 90 def fileurl(path): |
91 path = os.path.abspath(path) | 91 path = os.path.abspath(path).replace(os.sep, '/') |
92 drive, path = os.path.splitdrive(path) | 92 drive, path = os.path.splitdrive(path) |
93 if drive: | 93 if drive: |
94 drive = '/' + drive | 94 drive = '/' + drive |
95 url = 'file://%s%s' % (drive, path) | 95 url = 'file://%s%s' % (drive, path) |
96 return url | 96 return url |