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.
I was trying to use mercurial->View and it asked me if I wanted hgk extension added to my .hgrc. I said yes. Later I found that my .hgrc file had been drastically altered. Specifically, all comments were removed. There was valuable information in those comments like commented out alternative settings or comments about URLs talking about specific extensions and such. Now all gone.
We use an external library to parse and write configuration files (ini4j) that filters out comment lines. We can't instruct the library to leave the comments intact. But as a workaround, i can: 1) display a warning message in the confirmation dialog - i think that would be useful, you will at least be notified that you might loose those comments 2) always backup the latest copy of the hgrc, let's say as "originalFileName~" 3) for a commandline switch (initially disabled) we can always copy the latest version of the configuration file to a temp directory (as originalFileName.timestamp) Do you agree?
The workarounds sound fine. However, I know when project property files get parsed and modified the comments there are left intact. For example Bundle.properties inside branding. Is the .hgrc property format that different that the same code cannot be used?
> Is the .hgrc property format that different that the same code cannot be used? yes
(In reply to comment #1) > We use an external library How about filing a bug against that external library?