Re: cvs2git: How to expand the CVS keywords?

Michael Haggerty <[email protected]> Wed, 18 Feb 2015 15:03:36 +0100
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 01/14/2015 11:04 AM, kalevi tappinen wrote:
> I run the version 2.4.0 of the cvs2git and the CVS keywords like $Id$
> are not expanded by default.
>=20
> How to expand the CVS keywords?
>=20
> There are option
>=20
> --keywords-off
>=20
> so I assume that expanding of the CVS keywords should work by default.

Keywords are not very useful in Git, so by default they are collapsed in
the output.

It is possible to have cvs2git expand them in the output much as they
would be if you checked the file out of CVS. For this behavior, use
KeywordHandlingPropertySetter('expanded') in your options file. Please
note that after conversion, the keywords will not be updated by Git, so
they will reflect the last value that they had in CVS unless you
update/delete them by hand.

There is some more information in doc/properties.txt. You can set the
"_keyword_handling" properties directly on particular files (e.g., using
--auto-props) for finer control.

Michael

--=20
Michael Haggerty
[email protected]

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=3D1670&dsMessageId=3D=
3099516

To unsubscribe from this discussion, e-mail: [[email protected]=
ris.org].