From: Eric Wong <normalperson@yhbt.net>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: Junio C Hamano <gitster@pobox.com>,
Steven Grimm <koreth@midwinter.com>,
git@vger.kernel.org
Subject: Re: [PATCH] git-svn: allow dcommit to retain local merge information
Date: Wed, 20 Jun 2007 00:04:42 -0700 [thread overview]
Message-ID: <20070620070442.GB25010@muzzle> (raw)
In-Reply-To: <1181776659.30670.340.camel@gentoo-jocke.transmode.se>
Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> On Wed, 2007-06-13 at 19:13 +0200, Joakim Tjernlund wrote:
> > On Wed, 2007-06-13 at 02:23 -0700, Eric Wong wrote:
> > > dcommit will still rewrite the HEAD commit and the history of the first
> > > parents of each HEAD~1, HEAD~2, HEAD~3 as it always has.
> > >
> > > However, any merge parents (HEAD^2, HEAD^^2, HEAD~2^2) will now be
> > > preserved when the new HEAD and HEAD~[0-9]+ commits are rewritten to SVN
> > > with dcommit. Commits written to SVN will still not have any merge
> > > information besides anything in the commit message.
> > >
> > > Thanks to Joakim Tjernlund, Junio C Hamano and Steven Grimm
> > > for explanations, feedback, examples and test case.
> > >
> > > Signed-off-by: Eric Wong <normalperson@yhbt.net>
> > > ---
> > >
> > > This is a better patch that replaces the previous one.
> > >
> > > Junio:
> > > This one is a big change and should probably sit in pu or next
> > > for a bit. Double-checking the logic in linearize_history()
> > > would be greatly appreciated, too.
> > >
> > > I don't think there are any regressions for the
> > > already-linear-history case besides slightly reduced performance for
> > > new calls to cat-file.
> > >
> > > Joakim/Steven:
> > > Any further testing and test cases would be appreciated. Be very
> > > careful with real-world repositories, and run dcommit with the
> > > '-n' flag before actually committing to verify the diffs are sane.
> > >
> > > Thanks
> > >
> >
> > Did a little testing and so far it looks good :)
> >
> > Sidenote:
> > Doing this
> > git-svn init -t tags -T trunk -b branches file:///usr/local/src/tst-git-svn/svn-uboot-repo
> > git-svn fetch --quiet
> > makes git svn fetch stop for rather long periods in do_update:
> > Found possible branch point: file:///usr/local/src/tst-git-svn/svn-uboot-repo/trunk => file:///usr/local/src/tst-git-svn/svn-uboot-repo/tags/snap-uboot-1.1.4, 2
> > Found branch parent: (tags/snap-uboot-1.1.4) 81eef14963597cc99ba375f52e6d0b3bc09e25f8
> > Following parent with do_update
> > Successfully followed parent
> >
> > Is it possible to speed up do_update?
> >
> >
> > Lastly, when adding the above u-boot svn repo into a fresh u-boot clone from WD,
> > can I attach the svn tree to git u-boot tree without using a graft?
> >
> > I want to be able to recreate my own git repo by cloning the orginal u-boot
> > repo and the svn repo.
> >
> > Jocke
>
> Tried using --no-metadata(git svn clone --no-metadata) in my little test
> script I sent earlier and got
> "Unable to determine upstream SVN information from HEAD history"
> when dcommiting, -i trunk didn't help either.
>
> It is not entierly clear to me what --no-metadata means to me.
> Does git-svn still rewrite commits?
--no-metadata is really only useful for people doing one-shot imports
and abandoning SVN. It leaves out the git-svn-id: lines at the bottom
of commit messages, but still sets the committer/author names/email/date
to what is in the SVN repository.
> I can't rebuild rev_db file, if lost, but I guess I could still
> do a new git-svn clone and restore my repo? I guess I lose something
> if I do that but what?
If you lose your rev_db file with no-metadata, you'll have to redo the
git-svn clone
> Also don't really understand why git-svn log doesn't work, can't it get
> that info from the svn repo?
Getting git-svn log working with --no-metadata would require radically
different code. dcommit would be very different, too. So yes, they
don't work because I'm lazy.
--
Eric Wong
next prev parent reply other threads:[~2007-06-20 7:04 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 17:25 git-svn set-tree bug Joakim Tjernlund
2007-06-10 1:47 ` Eric Wong
2007-06-10 17:21 ` Joakim Tjernlund
2007-06-10 17:27 ` Joakim Tjernlund
2007-06-10 21:33 ` Eric Wong
2007-06-10 23:27 ` Joakim Tjernlund
2007-06-10 23:37 ` Steven Grimm
2007-06-10 23:55 ` Joakim Tjernlund
2007-06-11 4:25 ` Eric Wong
2007-06-11 5:52 ` Junio C Hamano
2007-06-12 7:20 ` Eric Wong
2007-06-12 7:34 ` Junio C Hamano
2007-06-12 8:39 ` Eric Wong
2007-06-12 9:21 ` Joakim Tjernlund
2007-06-12 12:15 ` Steven Grimm
2007-06-13 9:23 ` [PATCH] git-svn: allow dcommit to retain local merge information Eric Wong
2007-06-13 17:13 ` Joakim Tjernlund
2007-06-13 23:17 ` Joakim Tjernlund
2007-06-20 7:04 ` Eric Wong [this message]
2007-06-20 6:56 ` Eric Wong
2007-06-21 16:54 ` Joakim Tjernlund
2007-07-01 13:09 ` Joakim Tjernlund
2007-06-14 6:30 ` Steven Grimm
2007-06-22 11:55 ` Joakim Tjernlund
2007-06-12 8:04 ` git-svn set-tree bug Lars Hjemli
2007-06-11 6:58 ` Steven Grimm
2007-06-11 8:52 ` Joakim Tjernlund
-- strict thread matches above, loose matches on Subject: below --
2007-06-23 17:56 [PATCH] git-svn: allow dcommit to retain local merge information Tjernlund
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=20070620070442.GB25010@muzzle \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=joakim.tjernlund@transmode.se \
--cc=koreth@midwinter.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).