Re: preserve Id in binary library?
Kevin Grover <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <CAGytbcPUuSDECvPYE3N-WK8J8w8C0Lj_ifiVZVZFJYYCAV9pUA@mail.gmail.com> |
You may miss-understand keywords. In CVS (and SVN) the keywords are _stored_ in the repository in compressed form $KEYWORD$. They are only expanded on checkout/update. On checkin, they are compressed to compact form before deltas are created. Possible solutions: If you use mercurial, you can use the keyword extensions to get cvs-like keywords. Or, you could write a script that iterated through your files and updated the keywords manually, based on your needs: a form of macro expansion. It would be cleaner to move the id information to another (text-like file) and update the build process to update/populate that file. I know, this is not easy in some cases. Good luck. On Tue, Sep 13, 2011 at 17:52, John Heumann <[email protected]>wrote: > ** > Hi Greg. > > Thanks very much for the cvs2hg backend! > I've been porting a number of old repositories recently, and it's worked > flawlessly in most cases. > > I have run into one problem with keywords in binary files. This cvs > repository contains 2 binary (.lib) files which contain expanded Id strings > in their header. We need to maintain these unaltered, but cvs2hg seems > compacts them to $Id$ even if I use the --keywords-off option. > > Is there a way to suppress this? Our current workaround is to check in a > copy of the original library after conversion. > > Thanks once again! > > Regards, > -jh- > ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2839235 To unsubscribe from this discussion, e-mail: [[email protected]].