Method Parser.RCS()->expand_keywords_for_revision()
- Method expand_keywords_for_revision
stringexpand_keywords_for_revision(string|Revisionrev,string|voidtext,int|voidexpansion_mode)- Description
Expand keywords and return the resulting text according to the expansion rules set for the file.
- Parameter
rev The revision to apply the expansion for.
- Parameter
text If supplied, substitute keywords for that text instead using values that would apply for the given revision. Otherwise, revision
revis used.- Parameter
expansion_mode Expansion mode
1Perform expansion even if the file was checked in as binary.
0Perform expansion only if the file was checked in as non-binary with expansion enabled.
-1Perform contraction if the file was checked in as non-binary.
- Note
The Log keyword (which lacks sane quoting rules) is not expanded. Keyword expansion rules set in CVSROOT/cvswrappers are ignored. Only implements the -kkv, -ko and -kb expansion modes.
- Note
Does not perform any line-ending conversion.
- See also