Mercurial natively supports the ability to create "paths" (read: shortcuts) to remote repositories.
So instead of having to specify svn+https://www.assembla.com/blah..., I can then just map a path in my .hgrc, and then execute 'hg push pathname'.
Netbeans does not accept this format though, as it is not a valid URL path.
I consider this a bug, as Netbeans supports Mercurial, and Mercurial supports the path format natively.
If support is implemented for paths, Netbeans should check the .hgrc to determine if the string provided is a valid path (i.e. - exists within .hgrc), and if not, *then* toss an error about an unsupported format.
> I consider this a bug, as Netbeans supports Mercurial, and Mercurial supports
> the path format natively.
Not every feature supported by a hg client is (and can be) supported by the IDE.
Why do you need this anyway? How many times do you specify where to pull from and where to push?
users comments, from e-mail communication:
I am working on several projects where the clients have their code in SVN, whereas I maintain my own branch in a Bitbucket Mercurial repo, and on my local machine I push/pull from SVN (using hgsubversion) and push/pull from my bitbucket repo as well, handling merges, etc, locally.
As a result, I like to use the path option to avoid having to remember the URL for whichever path that I don't have set as the default.
and a suggestion:
Here's a suggestion: why not just simply add a check box somewhere to disable protocol validation?
Then you don't have to worry about validating additional protocols for advanced Version Control users, you just toss a "at your own risk" type of warning and be done with it. Plus if it's truly an invalid URL, the versioning software should toss a warning of it's own in the output tab.
path aliases are now added to combo in pull/push other dialogs and allowed as a valid selection
Integrated into 'main-golden'
User: Ondrej Vrabec <firstname.lastname@example.org>
Log: #196130 - Mercurial - support .hgrc "paths"
allow hgrc path aliases in pull/push other dialogs