Problem with label dates

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
ngallimore
Posts: 5
Joined: Mon Oct 31, 2005 5:53 pm
Location: Brisbane, Australia
Contact:

Problem with label dates

Post by ngallimore » Mon Dec 12, 2005 9:35 pm

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?
Nick Gallimore
XPAC Team Lead
Runge Ltd

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Dec 13, 2005 4:52 pm

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.
Linda Bauer
SourceGear
Technical Support Manager

ngallimore
Posts: 5
Joined: Mon Oct 31, 2005 5:53 pm
Location: Brisbane, Australia
Contact:

Post by ngallimore » Wed Dec 14, 2005 1:04 am

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.
Nick Gallimore
XPAC Team Lead
Runge Ltd

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Wed Dec 14, 2005 8:55 am

Nick, I've been having the same problem for a few versions, and have been working with Linda to try to get this resolved. The behavior has changed over the last few versions as they've tried to resolve this issue, but it's still not 100% solved.

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Dec 14, 2005 9:33 am

Nick / Greg:

This sorting issue will be solved in the soon to be released Vault 3.1.6.
Jeff Clausius
SourceGear

ngallimore
Posts: 5
Joined: Mon Oct 31, 2005 5:53 pm
Location: Brisbane, Australia
Contact:

Post by ngallimore » Wed Dec 14, 2005 2:51 pm

That's great news - I look forward to 3.1.6.

Thanks!
Nick Gallimore
XPAC Team Lead
Runge Ltd

Post Reply