Comments
Patch
@@ -346,6 +346,11 @@
return stdin, stdout, stderr
def popen4(cmd, env=None, newlines=False, bufsize=-1):
+ shell = os.environ.get('MSYSCON') #SHELL
+ if shell is not None:
+ print('shelling out for %s' % cmd)
+ cmd = '%s -c %s' % (shell, shellquote(cmd))
+ print('popen4(%s)' % cmd)
p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
close_fds=closefds,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
Which fixes the issue for this specific test:
@@ -75,12 +75,16 @@
subrepo paths with ssh urls
$ hg clone -e dummyssh ssh://user@dummy/cloned sshclone
But doesn't for absolute paths later in the same test file:
@@ -91,15 +95,13 @@
$ hg -R sshclone push -e dummyssh ssh://user@dummy/`pwd`/cloned
pushing to ssh://user@dummy/$TESTTMP/cloned
- pushing subrepo sub to ssh://user@dummy/$TESTTMP/sub
- searching for changes
- no changes found
- searching for changes
- no changes found
- [1]
+ shelling out for dummyssh user@dummy "hg -R $TESTTMP/cloned serve
--stdio"
+ popen4(sh.exe -c "dummyssh user@dummy \"hg -R $TESTTMP/cloned serve
--stdio\"")
+ remote: abort: there is no Mercurial repository here (.hg not found)!
+ abort: no suitable response from remote hg!
+ [255]