From: Pascal Obry <pascal@obry.net>
To: Penny Leach <penny@mjollnir.org>
Cc: git@vger.kernel.org
Subject: Re: git-svn starting with an empty svn repository
Date: Tue, 24 Feb 2009 15:19:13 +0100 [thread overview]
Message-ID: <a2633edd0902240619v633eacq4ff7ffd20f66da04@mail.gmail.com> (raw)
In-Reply-To: <20090224134325.GA10719@mjollnir.org>
Penny,
I've been trying to do the exact same things. I'm using Git to import
from CVS and export into a Subversion repository.
What I have done:
- I have used cvsimport for the CVS repository (no problem)
- I have created an empty repository using svnadmin
- I have imported the svn trunk into Git
- I'm cherry-picking any new commits from my cvs-imported branch
(master) into the git-svn one (named svn-trunk)
For this last point, I'm using this code sniped:
<<
for i in $(git cherry svn-trunk master | sed -n 's/^+ //p'); do
echo Applying $i;
(git cherry-pick --no-commit $i &&
git log --pretty=format:"Author: %an <%ae>%nDate :
%ad%n%n%s%n%b" -1 $i > /tmp/cm &&
git commit --file=/tmp/cm) || (echo Cannot commit $i; exit 1)
done
>>
I'm editing the log to properly record original author and date.
There is maybe better solutions...
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
next prev parent reply other threads:[~2009-02-24 14:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 13:43 git-svn starting with an empty svn repository Penny Leach
2009-02-24 14:19 ` Pascal Obry [this message]
2009-02-24 15:03 ` Penny Leach
2009-02-24 15:36 ` Pascal Obry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2633edd0902240619v633eacq4ff7ffd20f66da04@mail.gmail.com \
--to=pascal@obry.net \
--cc=git@vger.kernel.org \
--cc=penny@mjollnir.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).