[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Importing RCS (and SCCS) into SVN?

From: Peter J. Holzer <hjp_at_hjp.at>
Date: 2004-02-16 23:12:57 CET

On 2004-02-16 11:29:28 -0800, Jonathan Leffler wrote:
> I'm in a state of paralysis, wondering how to import my RCS setup into SVN.
> I also have some SCCS files that I would like to import into SVN, but I
> have a good SCCS to RCS tool which I can use first if RCS works easily
> (it's an extension of (an old version of) the standard sccs2rcs script).

I'd convert from RCS to CVS first. CVS repositories are just a bunch of
RCS files, so conversion is trivial. Something like:

find . -name '*,v' -print |
while read a
do
    b=`echo "$a" | sed -e 's,/RCS/,/,'`
    c=`dirname $b`
    mkdir -p "$CVSROOT/$module/$c"
    cp "$a" "$b"
done

should do the trick (unless you have newlines in filenames).

After that you can use cvs2svn.

        hp

-- 
   _  | Peter J. Holzer    | I think we need two definitions:
|_|_) | Sysadmin WSR       | 1) The problem the *users* want us to solve
| |   | hjp@hjp.at         | 2) The problem our solution addresses.
__/   | http://www.hjp.at/ |    -- Phillip Hallam-Baker on spam

  • application/pgp-signature attachment: stored
Received on Tue Feb 17 04:29:40 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.