Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 196130 - Mercurial - support .hgrc "paths"
Mercurial - support .hgrc "paths"
Product: versioncontrol
Classification: Unclassified
Component: Mercurial
PC Linux
: P3 (vote)
: 7.2
Assigned To: Ondrej Vrabec
Depends on:
  Show dependency treegraph
Reported: 2011-02-28 20:07 UTC by phpsitesolutions
Modified: 2011-11-23 15:59 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description phpsitesolutions 2011-02-28 20:07:28 UTC
Mercurial natively supports the ability to create "paths" (read: shortcuts) to remote repositories.
So instead of having to specify svn+, 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.
Comment 1 Ondrej Vrabec 2011-02-28 20:34:56 UTC
> 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?
Comment 2 Ondrej Vrabec 2011-03-01 07:25:42 UTC
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.
Comment 3 Ondrej Vrabec 2011-11-22 17:05:14 UTC
Comment 4 Ondrej Vrabec 2011-11-22 17:07:02 UTC
path aliases are now added to combo in pull/push other dialogs and allowed as a valid selection
Comment 5 Quality Engineering 2011-11-23 15:59:51 UTC
Integrated into 'main-golden'
User: Ondrej Vrabec <>
Log: #196130 - Mercurial - support .hgrc "paths"
allow hgrc path aliases in pull/push other dialogs

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo