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: | Committing to Subversion resets code folding | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | crazyjavahacking |
Component: | Subversion | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | normal | CC: | mentlicher |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
crazyjavahacking
2013-06-27 15:32:59 UTC
Do you by a chance use replaceable variables like $History:$, $Revision:$ or similar ? Verified with $Revision$ keyword. With keywords the document is reloaded from the disk and all content deleted/inserted again - all folding is lost then. Folding state remains if the file contains no keywords. Moving as enhancement to VCS for evaluation; there are two ways out of the issue: 1/ instead of reloading the document, the document would be patched by diff between the memory doc and disk file contents. This will retain most of the text intact as well as folding or other offset-based markers. 2/ if folding system knows the operation is a 'reload', it might persist fold offsets prior to content clear, and restore them after content is loaded back. However if keyword expands the desired offsets may be shifted from the original position. |