From: Eric Wong <normalperson@yhbt.net>
To: Pascal Obry <pascal.obry@gmail.com>
Cc: git list <git@vger.kernel.org>
Subject: Re: Problem with git-svn
Date: Fri, 21 Dec 2007 20:29:24 -0800 [thread overview]
Message-ID: <20071222042924.GA18812@soma> (raw)
In-Reply-To: <476AD1AB.8040406@gmail.com>
Pascal Obry <pascal.obry@gmail.com> wrote:
> Eric,
>
> > Ah, oops, I was off-by-one with the revision number. But git-svn does
> > look to be doing the right thing here, because it followed history into
> > /importfromcvs/trunk/ and file.el was part of it.
>
> Yes part of it but before the creation of the /importfromcvs/trunk/ that
> was moved later as /trunk/PROJ.
>
> < I meant moved as /trunk/PROJ1 then /trunk/PROJ2... and so on.
>
> In /importfromcvs/trunk/ there was many projects imported. One per one,
> each time moving it into /trunk/PROJ.
>
> If I look at history of /trunk/PROJ:
>
> $ svn log svn+ssh://myserver/trunk/PROJ
>
> The last revision is 45775, so I think git-svn should not look past this
> revision. So I'm very surprised by the current behavior and think it is
> a bug to import file.el at revision 9458. Note that the workaround for
> me is to use:
Since r48468 was where /importfromcvs/trunk got renamed into /trunk/PROJ
(from your previous message http://mid.gmane.org/4764FE2C.1010103@obry.net)
/importfromcvs/trunk exists at r45775, but /trunk/PROJ does not; and
git-svn at least follows that (which is what I suppose everybody wants).
However...
Did /importfromcvs/trunk exist all the way between r9458 and r48468? Or
was that directory replaced entirely by something else along the way?
git-svn may be following copy history too aggressively, in this case.
On the other hand, this was somewhat intended because it could also
be a way to track merges as "moving" tags[1].
> $ git svn clone svn+ssh://myserver/trunk/PROJ --revision=45775:HEAD
>
> But it would be lot cleaner to have git-svn handling this properly I think.
Does --no-follow-parent work in your case? Or does it go too far
in stopping at r48468 (probably).
[1] - I follow a project that has a RELEASE branch that is occasionally
deleted and replaced with the contents of trunk. git-svn will actually
import this as a merge commit with two parents:
1. trunk (obviously)
2. the previous RELEASE, which was deleted
This allows old (but deleted) history to still be visible, which is what
*I* always want. However, it could cause undesired behavior in your
case...
Note that running 'svn log <URL of #2 case>' will NOT show what git-svn
log will show for two; and I think it's nice that git-svn will track
history that is harder to find with SVN
(which would require svn log -v <URL of #2 case>@<rev>).
Maybe another switch should be added (--merge-foster-parent?)
--
Eric Wong
next prev parent reply other threads:[~2007-12-22 4:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-16 10:30 Problem with git-svn Pascal Obry
2007-12-16 13:56 ` Peter Baumann
2007-12-16 15:40 ` Pascal Obry
2007-12-19 8:27 ` Eric Wong
2007-12-19 11:27 ` Pascal Obry
2007-12-20 18:30 ` Eric Wong
2007-12-20 20:33 ` Pascal Obry
2007-12-21 15:42 ` Pascal Obry
2007-12-22 4:29 ` Eric Wong [this message]
2007-12-22 14:38 ` Pascal Obry
2007-12-20 20:34 ` Pascal Obry
-- strict thread matches above, loose matches on Subject: below --
2008-08-19 13:41 Boaz Stuller
2008-08-20 8:11 ` Eric Wong
2008-08-20 17:45 ` Boaz Stuller
2008-08-21 6:34 ` Eric Wong
2007-05-03 23:10 John Wiegley
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=20071222042924.GA18812@soma \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=pascal.obry@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.