I have to make changes in an old project we did years ago and our company used SVN in that time (now we have GIT). I tried to run that project in Eclipse, but I discovered that all files have extensions *.java,v (that was easy to fix), but also all files include content like this
head 1.2;
access;
symbols
HR_struts:1.2.0.2
Root_HR_struts_start:1.2
Konec_hybridu_060602:1.2;
locks; strict;
comment @# @;
1.2
date 2006.05.05.05.48.50; author moncka; state Exp;
branches;
next 1.1;
So I suppose that is the relic of our SVN usage. And my question is how to delete this content by using any tool (project contains thousands of files).
Thanks a lot for help.
P.S. Project also includes files like .jsp, .xml and so on which are spoiled too.
If you have a lot of files with names ending
,vit sounds like it was CVS rather than Subversion that was being used and that what you have is a copy of the repository rather than just a working copy of the project.You don’t want to just strip this content from the files because that will not leave you with an intact copy of the most recent version of each file.
You could try setting up a CVS server for the repository and doing a checkout to get a clean copy of the latest version of the source files. Alternatively, now that you’re using Git it might be worth investigating
git-cvsimport. Converting a repository with that is fairly straightforward.