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 124140

Summary: Ignore does not work peoperly if .hgignore file contains comments or sntax chnage
Product: versioncontrol Reporter: Padraig Obriain <padraigob>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch

Description Padraig Obriain 2007-12-17 16:02:53 UTC
If .hgignore file contains comments or statements of the form "syntax: glob" or "syntax: regexp then Ignoring or
Unignoring a file will corrupt the .hgignore file
Comment 1 Padraig Obriain 2007-12-17 16:05:01 UTC
If the .hgignore file contains "syntax: glob" or "syntax: regexp" then Ignore or Unignore will display a warning and not
attempt to ignore or unignore the file.

Comments in the file will be discarded when the file is updated.
Comment 2 Padraig Obriain 2007-12-19 12:16:46 UTC
Created attachment 54395 [details]
proposed patch
Comment 3 Padraig Obriain 2007-12-19 12:21:02 UTC
This patch also includes the patch for #123874.
Comment 4 Padraig Obriain 2007-12-19 12:23:32 UTC
IDE:-------------------------------------------------
IDE: [12/19/07 12:22 PM] Committing "Mercurial" started
Checking in HgUtils.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/HgUtils.java,v  <-- 
HgUtils.java
new revision: 1.25; previous revision: 1.24
done
Checking in Bundle.properties;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.19; previous revision: 1.18
done
IDE: [12/19/07 12:22 PM] Committing "Mercurial" finished
Comment 5 Padraig Obriain 2007-12-19 12:24:36 UTC
*** Issue 123874 has been marked as a duplicate of this issue. ***