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 205283

Summary: API for setting label in local history
Product: versioncontrol Reporter: Jan Becicka <jbecicka>
Component: LocalhistoryAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 48427, 209778    

Description Jan Becicka 2011-11-18 11:09:03 UTC
I'd like to ask for API for setting labels. Refactoring changes should labeled in local history.
Comment 1 Tomas Stupka 2011-11-21 10:22:04 UTC
- labels are associated with a specific file version
- file versions in local history are created in the moment before a file is changed, deleted or renamed. LH would need to know that a file operation is somehow related to a bigger transaction. 

- any proposals?

- this issue blocks issue #48427, but just accordingly labeling file versions created during a refactoring action doesn't seem to be the complete solution for #48427.
Comment 2 Tomas Stupka 2012-03-20 10:11:28 UTC
see o.n.m.versioning.spi.VCSHistoryProvider and o.n.m.versioning.spi.VCSHistoryProvider.HistoryEntry 

the implementation of VCSHistoryProvider in LocalHistory makes it possible to set the message (label) associated with a HistoryEntry. The problem here is how will refactoring find out which HistoryEntry is related to it's changes ...