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.
Summary: | Mercurial->View alters my .hgrc | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | ivan <ivan> |
Component: | Mercurial | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ivan
2009-07-23 02:04:44 UTC
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? |