Re: cvs2git convesion removes parts of comments
Michael Haggerty <[email protected]> Thu, 15 Oct 2015 17:31:32 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
On 10/14/2015 06:33 PM, Marius Giurgi wrote:
> I'm trying to convert CVS to git repos (using cvs2git version 2.5.0-dev)
> and some of my repos appear to be incorrectly converted (some minor
> differences in the comment section).
>
> Here's the example of the CVS version of a file and the converted git
> version:
>
> CVS:
>
> /*
> Header file for footpedal library. Jon Doe, 10/11/96.
> $Id: footpedal.h,v 1.4 2001/11/26 16:51:05 bcavalier Exp $
> */
>
> git:
>
> /*
> Header file for footpedal library. Jon Doe, 10/11/96.
> $Id$
> */
>
> Apparently the conversion gets rid of highlighted text.
> Any ideas why this happens? I'm not sure if there is a configuration
> problem or a bug in the conversion app.
These are special comments that are expanded by CVS to contain
information about the revision of the file. This is pretty useless under
Git, so the default is for keywords to be collapsed. If you want the
keywords expanded, you can use the options-file method of starting
cvs2git, and change the line
KeywordHandlingPropertySetter('collapsed'),
to
KeywordHandlingPropertySetter('expanded'),
Michael
--
Michael Haggerty
[email protected]
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=3142413
To unsubscribe from this discussion, e-mail: [[email protected]].