git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Baumann <waste.manager@gmx.de>
To: Stas Maximov <smaximov@yahoo.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] git-svnimport: added explicit merge graph option -G
Date: Sun, 24 Jun 2007 10:44:27 +0200	[thread overview]
Message-ID: <20070624084427.GA7715@xp.machine.xx> (raw)
In-Reply-To: <7vk5tt25n7.fsf@assigned-by-dhcp.cox.net>

On Sun, Jun 24, 2007 at 12:06:20AM -0700, Junio C Hamano wrote:
> From: Stas Maximov <smaximov@yahoo.com>
> Date: Sat, 23 Jun 2007 09:06:30 -0700
> 
> Allows explicit merge graph information to be provided. Each line
> of merge graph file must contain a pair of SVN revision numbers
> separated by space. The first number is child (merged to) SVN rev
> number and the second is the parent (merged from) SVN rev number.
> Comments can be started with '#' and continue to the end of line.
> Empty and space-only lines are allowed and will be ignored.
> ---
> 
>  * Stas, please give a "Signed-off-by" line, and get in the
>    habit of always CC the list.
> 
>    I received a format-patch output as attachment from Stas.  As
>    I cannot comment on the patch in that format, I am making a
>    verbatim forward to the list.
> 
>    I'll comment on the patch separately when I am through it,
>    but would appreciate comments from people who were involved
>    in git-svnimport in the past, and still use it.
> 
>    "You should use git-svn instead" people can repeat that as
>    usual, but at the same time it might be worth realizing that
>    there are people who maintain git-svnimport being better for
>    one-short importing.
> 

[exchanging To:/Cc: as Junio just forwarded the message from Stas]

Not commenting on the patch per se, but wouldn't it make more
sense to have such functionality in a history rewriting tool like
e.g. git-branch-filter?

I had an svn import (git-svn) where I wanted to give correct
branch/merge points, too, and so I manually created a grafts file
annotating all the svn merges. Having such a thing as a _generic_ tool
which operates on grafts would be much more usefull because you get one
implementation which could be used for each and every importer out
there. Sure, you have to transform the native revision specifieres into
the GIT commit id's if you only have e.g. "merged r4711:4720 into trunk",
but these functionality is much more common to have in importers
than whats implemented in the above mentioned patch.

Another bonus point of using the grafts mechanism you'll get for free is
that you could _look_ at the commit graph in gitk *before* doing the
often expensive reimport of your project, so could be sure you haven't
forgotten to mark a merge.

-Peter Baumann

  reply	other threads:[~2007-06-24  8:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-24  7:06 [PATCH] git-svnimport: added explicit merge graph option -G Junio C Hamano
2007-06-24  8:44 ` Peter Baumann [this message]
2007-06-24 17:27   ` Steven Grimm
2007-06-25  8:54   ` Peter Baumann
2007-06-24  9:32 ` Alex Riesen
  -- strict thread matches above, loose matches on Subject: below --
2007-06-24 21:48 Stas Maximov
2007-06-24 22:17 ` Junio C Hamano
2007-06-24 23:10 Stas Maximov
2007-06-25  7:05 ` Junio C Hamano
2007-06-25 16:23 Stas Maximov

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=20070624084427.GA7715@xp.machine.xx \
    --to=waste.manager@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=smaximov@yahoo.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 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).