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.
It is quite annoying that Code Folding for Java editor is resetted every time the file is committed using Subversion. Code folding should be persisted and not affected by version control committing. NetBeans Dev 201306202301, JDK 7u15 32bit
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.