From: Gabriel Filion <lelutin@gmail.com>
To: esr@thyrsus.com
Cc: Thomas Rast <trast@student.ethz.ch>, git@vger.kernel.org
Subject: Re: Three issues from a Subversion-to-git migration
Date: Mon, 29 Mar 2010 11:57:32 -0400 [thread overview]
Message-ID: <4BB0CDEC.8000708@gmail.com> (raw)
In-Reply-To: <20100329091056.GC10538@thyrsus.com>
Hello,
On 2010-03-29 05:10, Eric Raymond wrote:
> Thomas Rast <trast@student.ethz.ch>:
>> Eric Raymond wrote:
>>> 2. The git-svn migration logic does not handle unmodified SVN tag
>>> trees well.
>>
>> The problem here is that git-svn is designed to handle incremental
>> updates, where it can't know whether some insane SVN user decides to
>> modify the tag later on.
>
> Yes. Ideally, I suppose, git-svn (or whatever replaces it) would have
> behavior something like this:
>
> 1. Turn unmodified tag directories into git tags
> 2. Turn odified tags into branches.
> 3. Recognize when a formerly unmodified tag has been modified, remove
> the git tag, and turn it into a branch.
>
The 3rd point seems a bit weird to me.. users don't expect tags to
disappear magically. Especially if it's done during a fetch while working.
Here's how I would change the scenario:
1. For each creation of a sub-directory in SVN's tag directory, create a
git tag on the revision that was referenced by the directory copy in SVN.
2. If (and only if) there are later modifications in the tag directory,
create a branch starting from that tag.
This way, the tag would be there but a branch would hold modifications
based on code at this point, if there is any.
The problem with my scenario, though is that it doesn't take care of tag
creation + modification in the same commit (yuukkkk, but it's possible
that it exists somewhere). If it could be possible to verify if
modifications were made during the tag creation, then we could make the
case hit both points.
The other big "thing" is that it expects a certain correct separation
into different directories (e.g. trunk/ tags/ branches/ ), which SVN
doesn't enforce.
--
Gabriel Filion
next prev parent reply other threads:[~2010-03-29 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 12:09 Three issues from a Subversion-to-git migration Eric Raymond
2010-03-29 9:00 ` Thomas Rast
2010-03-29 9:10 ` Eric Raymond
2010-03-29 9:32 ` Thomas Rast
2010-03-29 10:26 ` Eric Raymond
2010-03-29 15:57 ` Gabriel Filion [this message]
2010-03-29 18:01 ` Eric Raymond
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=4BB0CDEC.8000708@gmail.com \
--to=lelutin@gmail.com \
--cc=esr@thyrsus.com \
--cc=git@vger.kernel.org \
--cc=trast@student.ethz.ch \
/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).