jira-importer commented on issue #922: URL: https://github.com/apache/maven-scm/issues/922#issuecomment-2964633151
**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** commented Let me try to rephrase my comments and add links to the related code: [HgUtils.execute()](http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-hg/xref/org/apache/maven/scm/provider/hg/HgUtils.html#83) is responsible for every execution of a Mercurial command. `org.codehaus.plexus.util.cli.Commandline` is the '_framework_' for executing. It has intelligence to adjust the executable based on the OS. This class is used by every SCM Provider and a lot of Maven plugins. `CommandLine` opens a new shell to have full control over environment variables. So the last argument contains what will actually be executed. This is not how _you_ want to execute the command, because it'll close the shell ASAP. So you're only interested in the content of the last argument. In fact I'm quite happy it is not escaped, otherwise I had to unescape that line first before I could excecute it and analyze the output. If you still don't agree, discuss it with, share your thoughts [here](https://jira.codehaus.org/browse/PLXUTILS) (that'll be my last redirect ;) ). My intention was to point you to (what I believe is) the real cause. Convince me I'm wrong by trying the release a single module project (I predict it'll succeed). Also convince me I'm wrong by replacing the quotes(I predict the same issue). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
