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 - API for setting label in local history
Summary: API for setting label in local history
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks: 48427 209778
  Show dependency tree
 
Reported: 2011-11-18 11:09 UTC by Jan Becicka
Modified: 2013-01-17 14:51 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ...