LVCS API Questions

1) What is the notion of up-to-date label like in
LvcsObject.isUpToDate
LvcsObject.latestVersionIsUpToDate (BTW this should be changed to isLatestVersionUpToDate)
LvcsRevision.isUpToDate

2) Why is LvcsObject.getAllLabels()[getAllLabels().length-1].getName() and LvcsObject.getRevision().getImpliciteLabel().getName() different? Is an implicite label always created on change and 2 explicite labels before and after an action execution? Is there a way to get the explicit labels associated from a Revision? BTW The javadoc should read /**

  • Returns a label, which is associated with this revision. You can use this label to view the VCS

  • at the _time _of revision creation. This label is not visible _through _LocalVcs.getLabels().

*/

3) getImpliciteLabel.getName() returns the same the path of the LvcsObject and getPath is blank. Is is intentional or is it a bug?

4) I could not find a instance where LvcsRevision.getAbsolutePath and getName were different. What is the difference between the 2?

5) Why does LvcsRevision.move mean? As I understand you have a parallel hierarchy LvcsObject for the current revision that can be modified and LvcsRevision which are past revision read-only.

6) What is scheduleForRemoval and getPurgingPeriod ?

7) What is LvcsLabel.TYPE_CURRENT_SOURCES?

8) What is the relationship between Lvcs and vfs? If I invoke Lvcs actions that impact LvcsObject (move,rename) will they affect the files as well?

9) How do I add a label for the entire project tree(s)? What does LocalVcs.markSourcesAsCurrent do?

10) How do I roll back the project to a label?

Thanks for opening up this interface. It really opens up a lot of possibility (Coming up soon a Test Driven Design Plugin...)

Jacques

1 comment
Comment actions Permalink

1) What is the notion of up-to-date label like in

LvcsObject.isUpToDate - I guess you're wrong. There is no such method.

LvcsRevision.isUpToDate - this revision has "UpToDate" flag (for example after checkin or external changes or mark as current action)

LvcsObject.latestVersionIsUpToDate (BTW this should be changed to isLatestVersionUpToDate) - I've been removed this method from interface.

2) LvcsObject.getAllLabels - removed from interface
3) "getImpliciteLabel.getName() returns the same the path of the LvcsObject and getPath is blank."
"I could not find a instance where LvcsRevision.getAbsolutePath and getName were different"
- look like the bug. I'll check this
5) LvcsRevision.move - removed from interface.
6) scheduleForRemoval - this item with all children will be perged. getPurgingPeriod - minimal time of the "object life"
7) This label is created after "MarkSourcesAsCurrent" action
8)What is the relationship between Lvcs and vfs? If I invoke Lvcs actions that impact LvcsObject (move,rename) will they affect the files as well?
Vfs is indifferent to the LocalVCS. But Lvcs is listening vfs changes and makes corresponding changes.
9) Mark sources as current sets up-to-date flag for each last revision. To add label for entire project use LocalVCS.addLabel with the blank path.
10) There is no such possibility right now in the openapi. Please post request.

0

Please sign in to leave a comment.