Re: git-svn, tree moves, and --no-stop-on-copy
On Wed, Mar 08, 2006 at 11:15:24PM +0100, Yann Dirson wrote:
> OTOH, this does work:
>
> svn co -r1 https://svn.sourceforge.net/svnroot/ufoai/trunk@1
@@ -224,12 +227,14 @@ sub fetch {
unless (-d $SVN_WC) {
my @svn_co = ('svn','co',"-r$base->{revision}");
push @svn_co,'--ignore-externals' unless $_no_ignore_ext;
- sys(@svn_co, $SVN_URL, $SVN_WC);
+ sys(@svn_co, $SVN_URL . "\@$base->{revision}", $SVN_WC);
chdir $SVN_WC or croak $!;
That allows git-svn not to fail at r1 (or at r3 when checking out
trunk/src only), and the 1st fetch runs OK.
The second fetch runs OK as well, but it shows the following somewhat
scary stuff before starting the import:
Checked out revision 166.
refs/remotes/git-newsvn
fatal: 'refs/remotes/git-newsvn': No such file or directory
r166 = 38a6ba0e3db486c65a611c54c53f838210ce7551
The results looks fine. I don't know if it is expected to have the
master head stuck at remotes/git-oldsvn, though.
Thanks much for your help!
--
Yann Dirson <ydirson@altern.org> |
Debian-related: <dirson@debian.org> | Support Debian GNU/Linux:
| Freedom, Power, Stability, Gratis
http://ydirson.free.fr/ | Check <http://www.debian.org/>