[Zope-CMF] Re: Moving CMF into SVN
Kapil Thangavelu
k_vertigo at objectrealms.net
Mon Jul 11 15:08:27 EDT 2005
/note this is a resend original send failed because of attached script
which is now inlined.
the plone.org and collective cvs->svn migrations basically use cvs2svn
on a particular project subdirectory and then move the generated
branches/trunk/tags of the svn repo into an svn project subdirectory.
i've attached a script i use for migrating sf.net/projects/collective
projects to the plone.org collective svn, the generated dumps are
transferred by hand and loaded into the existing repository.
hth,
cheers,
-kapil
#!/bin/bash
PROJECTS="\
PlonePAS
PasswordResetTool
"
SVNREPO=repo
USERNAME=k_vertigo
if [ ! -e $SVNREPO ]
then
echo "Creating Repo"
svnadmin create $SVNREPO
fi
for PNAME in $PROJECTS;
do
echo "Migrating" $PNAME
./cvs2svn/cvs2svn --existing-svnrepos -s repo --username=$USERNAME
--tmpdir=tmp --dumpfile=${PNAME}.dump collective/${PNAME}
cd idir
svn import --username=$USERNAME --message="import reorg"
file:///$HOME/projects/psvn/$SVNREPO/$PNAME
cd ..
svn mv --username=$USERNAME --message="import reorg"
file:///$PWD/$SVNREPO/trunk file:///$PWD/$SVNREPO/$PNAME/trunk
svn mv --username=$USERNAME --message="import reorg"
file:///$PWD/$SVNREPO/tags file:///$PWD/$SVNREPO/$PNAME/tags
svn mv --username=$USERNAME --message="import reorg"
file:///$PWD/$SVNREPO/branches file:///$PWD/$SVNREPO/$PNAME/branches
echo "Finished" $PNAME
done
svnadmin dump $PWD/$SVNREPO > repo.dump
bzip2 repo.dump
On Jul 9, 2005, at 9:04 PM, Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sidnei da Silva wrote:
>> On Sat, Jul 09, 2005 at 01:37:07PM +0100, Jens Vagelpohl wrote:
>> | I have created a cvs2svn migration test sandbox for CMF on
>> svn.zope.org:
>> |
>> | http://svn.zope.org/Sandbox/jens/CMF/
>> |
>> | This represents an import from the current state of the CVS
>> | repository. It is looking pretty good, except for one niggle: The
>> | "branch/tag/trunk"-folders don't represent the direct root for the
>> | project files - they all contain a CMF directory which is the root
>> | for the project files.
>> |
>> | I found one cvs2svn FAQ (currently unavailable, server is down) that
>> | describes how to create a repository structure as known from
>> | svn.zope.org, where the "trunk", "branches" and "tags" directories
>> | are *inside* the main project directory. The "normal" way of
>> | operation for cvs2svn will create trunk/branches/tags directories at
>> | the very top of the repository and "share" them for all projects in
>> | the repository. However, that FAQ leads to the outcome described
>> | above, which still differs slightly from the other projects on
>> | svn.zope.org.
>> |
>> | Please take a look at the svn sandbox and give me your opinions. It
>> | seems that the history is being transferred correctly, just that one
>> | small layout problem remains.
>>
>> Can't you just move stuff around after importing? Afaict, 'svn move'
>> keeps history.
>
> I thought of that too, but there are a *lot* of tags / branches to fuss
> with; it would probably be best if we could script that.
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver +1 202-558-7113 tseaver at palladion.com
> Palladion Software "Excellence by Design" http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFC0J5L+gerLs4ltQ4RArd4AKCdOPUU2GAEPAlYIqNPZFm+DgLN+ACgkqFx
> AuKi8lYhoREqmkROPtsYPhM=
> =SQQS
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF at lists.zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
More information about the Zope-CMF
mailing list