This only affects Mercurial repository URLS using http protocol.
We are using the hgwebdir CGI along with HTTP basic auth. SCM operations during release:prepare fail because http auth is not provided to the cgi frontend to the repo. Adding the auth credentials to the URL results in NumberFormatException.
The following scm element results in number parse exception, because the colon is parsed during host and port parsing, instead of user/pass parsing.
Suggested fix: return needsAuthentication true for HTTP URLs that contain an @ symbol,
always parse for user/pass and always include in URI if they are set.