Not sure if this has been reported - couldn't find a reference to it searching the forums...
There appears to be an issue with the date / time reported for labels. We have an automated test harness (developed in-house, uses Vault API) that runs each night, does a get and build, runs some unit tests, updates the build number, labels the source, and then does a history of the previous day's activities. I noticed a little while ago that the labels were not being reported correctly - basically they were generally reported as being applied at the same time as the last change that day. I assumed this was a problem with our test harness, and so went to investigate it today. After a bit of playing around, not being able to spot anything obvious, I decided to test it through the GUI, just to see what happened. Low and behold - the GUI was not reporting the label date correctly either!
To reproduce: apply a label to a folder, then do a show history and a show labels. The history will (at least in my test) report the date as being applied at the same time as the last modification to the folder, whereas the show labels list will report the date correctly.
Any ideas? Have I missed something? Has anyone else noticed this?
Problem with label dates
Moderator: SourceGear
-
- Posts: 5
- Joined: Mon Oct 31, 2005 5:53 pm
- Location: Brisbane, Australia
- Contact:
Problem with label dates
Nick Gallimore
XPAC Team Lead
Runge Ltd
XPAC Team Lead
Runge Ltd
This is expected behavior.
Show Labels, as you noted, shows the actual time the label was applied. In Show History, the time on the label becomes the time of the last change before the label was applied. This way, labels appear in history next to the version of the folder or item that was labeled.
Show Labels, as you noted, shows the actual time the label was applied. In Show History, the time on the label becomes the time of the last change before the label was applied. This way, labels appear in history next to the version of the folder or item that was labeled.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 5
- Joined: Mon Oct 31, 2005 5:53 pm
- Location: Brisbane, Australia
- Contact:
Ok, I can understand the reasoning for that.
I guess my question then becomes, is there any way to get the actual time of a label using the API?
What I've been finding using the API is that although I have the sort options set the same as in the GUI for returning the history (date desc), the label sometimes gets returned in a different order from what is displayed in the history window. It's a little hard to explain... to demonstrate:
GUI:
09/12/2005 02:55:03 PM Label [applied by nightly harness sometime later that night]
09/12/2005 02:55:03 PM Change set [from developer at this time]
09/12/2005 12:28:35 PM Change set [from developer at this time]
API:
09/12/2005 02:55:03 PM Change set [from developer at this time]
09/12/2005 02:55:03 PM Label [applied by nightly harness sometime later that night]
09/12/2005 12:28:35 PM Change set [from developer at this time]
Does the GUI do some tricky extra bit of sorting, or am I missing something?
Thanks.
I guess my question then becomes, is there any way to get the actual time of a label using the API?
What I've been finding using the API is that although I have the sort options set the same as in the GUI for returning the history (date desc), the label sometimes gets returned in a different order from what is displayed in the history window. It's a little hard to explain... to demonstrate:
GUI:
09/12/2005 02:55:03 PM Label [applied by nightly harness sometime later that night]
09/12/2005 02:55:03 PM Change set [from developer at this time]
09/12/2005 12:28:35 PM Change set [from developer at this time]
API:
09/12/2005 02:55:03 PM Change set [from developer at this time]
09/12/2005 02:55:03 PM Label [applied by nightly harness sometime later that night]
09/12/2005 12:28:35 PM Change set [from developer at this time]
Does the GUI do some tricky extra bit of sorting, or am I missing something?
Thanks.
Nick Gallimore
XPAC Team Lead
Runge Ltd
XPAC Team Lead
Runge Ltd
-
- Posts: 5
- Joined: Mon Oct 31, 2005 5:53 pm
- Location: Brisbane, Australia
- Contact: