This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 174305 - hgsvn repo should be resolved as mercurial repo, not svn repo
Summary: hgsvn repo should be resolved as mercurial repo, not svn repo
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@versioncontrol
Depends on:
Reported: 2009-10-11 13:17 UTC by fordfrog
Modified: 2011-08-09 10:54 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description fordfrog 2009-10-11 13:17:35 UTC
i'm running mercurial over svn repo using hgsvn. but netbeans recognizes the repo as subversion repo which means
netbeans is not usable for hgsvn repo and i have to do hg commits on console.

hgsvn info:

hgsvn repository contains .hg dir, .hgsvn dir and also .svn dirs. so i guess netbeans checks the repo for svn info
before it checks for hg info which in this case causes the problem. i didn't see the netbeans code but maybe simply
switching the order (hg first, then svn) would fix this problem.

i did not test this with older versions of netbeans but i guess the issue is there too.
Comment 1 Ondrej Vrabec 2009-10-12 12:08:44 UTC
You are right, it depends on the order in which present versioning systems are tested. It would probably suffice to
modify the order of the versioning systems.
We're planning to look into this in the next release.

We've never supported multiple repos => P2 enhancement.
Comment 2 Ondrej Vrabec 2010-03-05 04:24:35 UTC
Comment 3 Ondrej Vrabec 2010-03-05 04:28:20 UTC
You should now be able to specify the order of versioning systems. So you can manually say that e.g. mercurial precedes subversion, etc.
In order to do that, set priority property of each versioning system, i.e. run IDE with these commandline switches:

So in your case this should be enough:
-J-Dversioning.mercurial.priority=1 -J-Dversioning.subversion.priority=2
Comment 4 Quality Engineering 2010-03-08 11:22:45 UTC
Integrated into 'main-golden', will be available in build *201003081350* on (upload may still be in progress)
User: Ondrej Vrabec <>
Log: Issue #174305 - hgsvn repo should be resolved as mercurial repo, not svn repo
versioning systems are now sorted in user-defined order
Comment 5 Ondrej Vrabec 2011-08-09 10:54:52 UTC
VCS priorities have been deprecated in 7.1 and will not work any more. Instead use the Disconnect feature as described in bug #146824 (in short Team -> Subversion -> Disconnect)