Can vault insert the checkin comment in source file?

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

Moderator: SourceGear

Post Reply
advatechxi'an
Posts: 1
Joined: Wed Jul 23, 2008 9:50 pm

Can vault insert the checkin comment in source file?

Post by advatechxi'an » Wed Jul 23, 2008 11:16 pm

i want to keep the change log in source file, also do not want the programmer to make extra effort to write it manually, while he/she has to write the checkin comment for source file. so i want to insert the checkin comment into source file automatically by vault. can vault do that?

thanks in advance!
michael

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

Post by lbauer » Thu Jul 24, 2008 6:39 am

This functionality does not current exist in Vault. I'll log a feature request for this.
Linda Bauer
SourceGear
Technical Support Manager

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

Post by GregM » Thu Jul 24, 2008 11:51 am

Can't this be done with keyword expansion, with the Log keyword?

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

Post by lbauer » Thu Jul 24, 2008 4:00 pm

Greg, you're right.

You need to enable Keyword expansion. This setting is in the Admin Web Client under Source Control Repositories->(Repository name)->Keyword Expansion.

Then in the clients, use the keyword: $Log: $

The expanded file info will look like this:
$Log: /_demo/Documentation/IDE_Integration_Help.txt $

Revision: 3 Date: 2008-07-24 21:53:31Z User: admin
This is my comment.
The comment will be the item comment (checkout comment) or if there is no item comment, then the change set or checkin comment.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply