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 130135

Summary: HgUtils.isIgnored does not match patterns starting with ^ correctly
Product: versioncontrol Reporter: Padraig Obriain <padraigob>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch
additional patch

Description Padraig Obriain 2008-03-14 12:06:33 UTC
If .hgignore contain a pattern starting with ^, e.g. ^nbbulid/netbeans Hgutils.isIgnored does not match this correctly.
Comment 1 Padraig Obriain 2008-03-14 12:07:43 UTC
The problem is that the matching is done against the absolute path name and not the path name relative to the location
of the .hgignore directory.
Comment 2 Padraig Obriain 2008-03-14 12:22:26 UTC
Created attachment 58383 [details]
proposed patch
Comment 3 Padraig Obriain 2008-03-14 14:55:30 UTC
In http://www.selenic.com/mercurial/bts/issue886 there is the statement that a "file is ignored if its path or the path
of any of its subcomponents is matched by a pattern in .hgignore".

HgUtils.isIgnored does not implement that.
Comment 4 Padraig Obriain 2008-03-18 10:29:01 UTC
Patch applied in changeset 73896:46a24feca988.
Comment 5 Padraig Obriain 2008-03-19 16:42:00 UTC
Created attachment 58679 [details]
additional patch
Comment 6 Padraig Obriain 2008-03-20 09:42:58 UTC
Additional patch pushed in changeset 74440:ddf405473eeb.