Discussion:
KEYWORDS and LABELS
(too old to reply)
Rik Sagar
2003-08-04 23:57:47 UTC
Permalink
I wanted to use the VSS "keyword substitution" feature to
automatically put the current label for a directory tree
into a file. For example;

$/
+--SomeDir
+---File.c
+---File.h
+---OtherDir
+---Ver.txt

If I label SomeDir, then every file (file.c, file.h,
OtherDir and Ver.txt) all get the label assigned to them.
If I look at the History for any file in the Explorer,
they all show the label.

However, if I add the $History: $ keyword into Ver.txt it
doesn't show the LABEL info, it just shows something like;

===========Version 9=================
Author: Rik
Comment: Still pulling hair out


Any suggestions on a keyword that might pull out the
project's label?



Failing that, anyone have a way to put file dates for
every file in the project into a single .txt file.


Thanks,
Rik.
Jeff Clausius
2003-08-05 12:25:38 UTC
Permalink
rik:

don't pull out too much hair over this. you'll go bald. labels are not
a part of the expandable keywords.


here is a listing of all valid keywords (note, label is not available):


$Archive: $ - VSS archive file location
$Author: $ - User who last changed the file
$Date: $ - Date and time of last checkin
$Header: $ - Logfile, Revision, Date, Author
$History: $ - File history, VSS format
$JustDate: $ - Date, without the time addendum.
$Log: $ - File history, RCS format
$Logfile: $ - Same as Archive
$Modtime: $ - Date and time of last modification
$Revision: $ - VSS version number
$Workfile: $ - File name
$NoKeywords: $ - No keyword expansion for all keywords that follow


hth
jeff clausius
sourcegear corporation
Post by Rik Sagar
I wanted to use the VSS "keyword substitution" feature to
automatically put the current label for a directory tree
into a file. For example;
$/
+--SomeDir
+---File.c
+---File.h
+---OtherDir
+---Ver.txt
If I label SomeDir, then every file (file.c, file.h,
OtherDir and Ver.txt) all get the label assigned to them.
If I look at the History for any file in the Explorer,
they all show the label.
However, if I add the $History: $ keyword into Ver.txt it
doesn't show the LABEL info, it just shows something like;
===========Version 9=================
Author: Rik
Comment: Still pulling hair out
Any suggestions on a keyword that might pull out the
project's label?
Failing that, anyone have a way to put file dates for
every file in the project into a single .txt file.
Thanks,
Rik.
Loading...