Commit a659d5a4 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

run-tests: replace '#' with '-' in temp path of repos created for tests

If we have multiple cases in a test, that leads us to a temp path of
format "<temp-path>-<case1>#<case2>".
This leads to  hg.parseurl() parsing the path and take part
after `#` as a branch name.

I encountered this bug while adding support for share-safe case in next patch.

Differential Revision:
parent 4a28f5e8408e
......@@ -1595,7 +1595,7 @@
casepath = b'#'.join(case) = '%s#%s' % (, _bytes2sys(casepath))
self.errpath = b'%s#%s.err' % (self.errpath[:-4], casepath)
self._tmpname += b'-%s' % casepath
self._tmpname += b'-%s' % casepath.replace(b'#', b'-')
self._have = {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment