Keyword explansion shows date of previous check-in

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

Moderator: SourceGear

Post Reply
dybkjaer

Keyword explansion shows date of previous check-in

Post by dybkjaer » Sun Jun 12, 2005 6:13 am

Keword expansion (in Version 3.0.5 (2833)) shows dates of previous check-in instead of latest check-in.
Moreover $Header and $Log display different time formats (Z and +02:00, respectively).

For example data, please view the following:
// $Header: /Interfaces/Src/staffweb/staffweb/WebDb.cs 26 2005-06-12 11:21:32+02:00 Hans_Dybkjær $

In the log below, all versions are checked in today, even the one showing 27 May 2005. The last two revisions are solely to illustrate what happens; clearly, the previous time is used (the computer clocks of my computer and the Vault server seem to disagree by about 30 seconds, but this does not affect the illustration)

/* $Log: /Interfaces/Src/staffweb/staffweb/WebDb.cs $
*
* Revision: 26 Date: 2005-06-12 09:21:32Z User: Hans_Dybkjær
* My computer clock now says 11:28
*
* Revision: 25 Date: 2005-06-12 09:15:39Z User: Hans_Dybkjær
* My computer clock says 11:22
*
* Revision: 24 Date: 2005-06-12 09:12:56Z User: Hans_Dybkjær
* Does keyword expansion work?
*
* Revision: 23 Date: 2005-05-27 00:58:33Z User: Hans_Dybkjær
* Added hideShift and useShift parameters.

The checkins are of c# files via Visual Studio.NET 2003.

Is there a workaround, and/or will there be a correction in the next version of Vault?

Best regards,
Hans

dybkjaer@pdc.dk

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

Post by lbauer » Mon Jun 13, 2005 8:48 am

I was able to reproduce this in Vault 3.0.7. We'll need to look into it a little further to see why it's doing this.
Linda Bauer
SourceGear
Technical Support Manager

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

Post by lbauer » Mon Jun 13, 2005 9:34 am

The $Log keyword is showing the modification date of the file, rather than the checkin date. This is a bug that's already logged to our bug tracking database and scheduled to be fixed in a future release. I'll bump it up in priority.
Linda Bauer
SourceGear
Technical Support Manager

mlippert
Posts: 252
Joined: Wed Oct 06, 2004 10:49 am
Location: Cambridge, MA

Post by mlippert » Mon Jun 13, 2005 9:45 am

I'm just curious. Does the Vault History show the same timestamps as the $log keyword expansion?

Mike

mlippert
Posts: 252
Joined: Wed Oct 06, 2004 10:49 am
Location: Cambridge, MA

Post by mlippert » Mon Jun 13, 2005 9:57 am

I guess Linda just answered my question, before I even finished posting it.

Anyway Linda, there are 2 other keyword expansion related bugs I'd like to see fixed if someone is working in this area.

1) The $Workfile keyword should expand to only the filename NOT the full path.

2) Keywords with 2 colons instead of 1 should truncate the expansion after overwriting all available characters up to the terminating $ and NOT insert more characters.
ie $Date:: 1234112112$ should expand to $Date:: 2005-06-09$ and not to $Date:: 2005-06-09 18:44:45-04:00 $

Thanks,
Mike

Post Reply