11 |
|
|
12 |
--> |
--> |
13 |
<head> |
<head> |
14 |
<title>CVS--Concurrent Versions System v1.12.1.1: 12. Keyword substitution</title> |
<title>CVS—Concurrent Versions System v1.12.1.1: 12. Keyword substitution</title> |
15 |
|
|
16 |
<meta name="description" content="CVS--Concurrent Versions System v1.12.1.1: 12. Keyword substitution"> |
<meta name="description" content="CVS—Concurrent Versions System v1.12.1.1: 12. Keyword substitution"> |
17 |
<meta name="keywords" content="CVS--Concurrent Versions System v1.12.1.1: 12. Keyword substitution"> |
<meta name="keywords" content="CVS—Concurrent Versions System v1.12.1.1: 12. Keyword substitution"> |
18 |
<meta name="resource-type" content="document"> |
<meta name="resource-type" content="document"> |
19 |
<meta name="distribution" content="global"> |
<meta name="distribution" content="global"> |
20 |
<meta name="Generator" content="texi2html"> |
<meta name="Generator" content="texi2html"> |
219 |
</dd> |
</dd> |
220 |
<dt> <code>$<i></i>State$</code></dt> |
<dt> <code>$<i></i>State$</code></dt> |
221 |
<dd><p>The state assigned to the revision. States can be |
<dd><p>The state assigned to the revision. States can be |
222 |
assigned with <code>cvs admin -s</code>--see <a href="cvs_16.html#SEC121">admin options</a>. |
assigned with <code>cvs admin -s</code>—see <a href="cvs_16.html#SEC121">admin options</a>. |
223 |
</p> |
</p> |
224 |
<a name="IDX194"></a> |
<a name="IDX194"></a> |
225 |
</dd> |
</dd> |
238 |
* $<i></i>MYBSD: src/frob.c,v 1.1 2003/05/04 09:27:45 john Exp $ |
* $<i></i>MYBSD: src/frob.c,v 1.1 2003/05/04 09:27:45 john Exp $ |
239 |
*/ |
*/ |
240 |
</pre></td></tr></table> |
</pre></td></tr></table> |
241 |
<p>Many repositories make use of a such a "local |
<p>Many repositories make use of a such a “local |
242 |
keyword" feature. An old patch to <small>CVS</small> provided |
keyword” feature. An old patch to <small>CVS</small> provided |
243 |
the <code>LocalKeyword</code> feature using a <code>tag=</code> |
the <code>LocalKeyword</code> feature using a <code>tag=</code> |
244 |
option and called this the "custom tag" or "local |
option and called this the “custom tag” or “local |
245 |
tag" feature. It was used in conjunction with the |
tag” feature. It was used in conjunction with the |
246 |
what they called the <code>tagexpand=</code> option. In |
what they called the <code>tagexpand=</code> option. In |
247 |
<small>CVS</small> this other option is known as the |
<small>CVS</small> this other option is known as the |
248 |
<code>KeywordExpand</code> option. |
<code>KeywordExpand</code> option. |
265 |
</p> |
</p> |
266 |
<p>All keyword expansion except the local keyword may be |
<p>All keyword expansion except the local keyword may be |
267 |
disabled using the <code>KeywordExpansion</code> option in |
disabled using the <code>KeywordExpansion</code> option in |
268 |
the <tt>`CVSROOT/config'</tt> file--see |
the <tt>`CVSROOT/config'</tt> file—see |
269 |
<a href="#SEC103">Configuring Keyord Expansion</a> for more details. |
<a href="#SEC103">Configuring Keyord Expansion</a> for more details. |
270 |
</p> |
</p> |
271 |
</dd> |
</dd> |
378 |
<p>It is also possible to specify an explicit list of |
<p>It is also possible to specify an explicit list of |
379 |
keywords to include or exclude using the |
keywords to include or exclude using the |
380 |
<code>KeywordExpand</code> option in the |
<code>KeywordExpand</code> option in the |
381 |
<tt>`CVSROOT/config'</tt> file-see <a href="#SEC103">Configuring Keyord Expansion</a> |
<tt>`CVSROOT/config'</tt> file–see <a href="#SEC103">Configuring Keyord Expansion</a> |
382 |
for more details. This feature is intended primarily |
for more details. This feature is intended primarily |
383 |
for use with the <code>LocalKeyword</code> option-see |
for use with the <code>LocalKeyword</code> option–see |
384 |
<a href="#SEC99">Keyword List</a>. |
<a href="#SEC99">Keyword List</a>. |
385 |
</p> |
</p> |
386 |
<hr size="6"> |
<hr size="6"> |
474 |
used with care. |
used with care. |
475 |
</p> |
</p> |
476 |
<p>One often would like to use <samp>`-kv'</samp> with <code>cvs |
<p>One often would like to use <samp>`-kv'</samp> with <code>cvs |
477 |
export</code>--see section <a href="cvs_16.html#SEC135">export--Export sources from CVS, similar to checkout</a>. But be aware that doesn't |
export</code>—see section <a href="cvs_16.html#SEC135">export—Export sources from CVS, similar to checkout</a>. But be aware that doesn't |
478 |
handle an export containing binary files correctly. |
handle an export containing binary files correctly. |
479 |
</p> |
</p> |
480 |
</dd> |
</dd> |
511 |
The advantage of this is that |
The advantage of this is that |
512 |
you can include your local version information in a |
you can include your local version information in a |
513 |
file using this local keyword (sometimes called a |
file using this local keyword (sometimes called a |
514 |
"custom tag" or a "local tag") without disrupting |
“custom tag” or a “local tag”) without disrupting |
515 |
the upstream version information (which may be a |
the upstream version information (which may be a |
516 |
different local keyword or a standard keyword). In |
different local keyword or a standard keyword). In |
517 |
these cases, it is typically desirable to disable the |
these cases, it is typically desirable to disable the |
606 |
controversial. As long as you are working on your |
controversial. As long as you are working on your |
607 |
development system the information is easily accessible |
development system the information is easily accessible |
608 |
even if you do not use the <code>$<i></i>Log$</code> |
even if you do not use the <code>$<i></i>Log$</code> |
609 |
keyword--just do a <code>cvs log</code>. Once you export |
keyword—just do a <code>cvs log</code>. Once you export |
610 |
the file the history information might be useless |
the file the history information might be useless |
611 |
anyhow. |
anyhow. |
612 |
</p> |
</p> |