All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Ittay Dror <ittay.dror@gmail.com>
Cc: Sverre Rabbelier <srabbelier@gmail.com>, git@vger.kernel.org
Subject: Re: connecting existing local git repository to svn
Date: Tue, 27 Jan 2009 14:02:15 +0100	[thread overview]
Message-ID: <497F05D7.3060607@drmicha.warpmail.net> (raw)
In-Reply-To: <497F0280.2070400@gmail.com>

Ittay Dror venit, vidit, dixit 01/27/09 13:48:
> 
> Sverre Rabbelier wrote:
> 
>> On Tue, Jan 27, 2009 at 11:41, Ittay Dror <ittay.dror@gmail.com> wrote:
>>   
>>> git: ----v1----v2----v3--v4---v5
>>> svn:                     \---v4--v5
>>>
>>> so the svn history starts from v3, but the git history remains unchanged.
>>>     
>> Create the new branch from v3 then, and use git svn to pull it in.
>> Then you can do 'git rebase that-svn-branch' on your git branch to put
>> all commits (not as one big commit) on top of that branch point. Now
>> you 'git checkout' that-svn-branch and do 'git reset --hard
>> the-git-branch', which should now consist of
>> v1--v2--v3--v4(git)--v5(git), etc. If you do 'git svn dcommit' from
>> the that-svn-branch now it should dcommit to svn each of your git
>>   
> sorry, my ascii art was confusing:
> 
> git: ----v1----v2----v3--v4---v5
> svn: v1-4---v5
> 
> v1-4 is v1 to v4 squashed together. (e.g., if i added a file in v2 and 
> removed in v3 it will not appear in svn history)

Well, for git and svn "revisions" are really "versions" of the complete
tree, not changesets. Have messed around with hg lately? ;)

On the other hand, a commit that introduces a new version is the
difference with respect to the previous "version".

Ususally it's clear what is meant, but you seem to mix both notions.

So, if v? denotes a version, then v4 is the result of all commits
leading up to v4. It *is* v4. "squashing" applies only to commits
("changes").

In any case, Sverre's as well as my suggestions should do what you want.
Why not try it out if you doubt it?

Cheers,
Michael

  reply	other threads:[~2009-01-27 13:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27  4:10 connecting existing local git repository to svn Ittay Dror
2009-01-27 10:35 ` Michael J Gruber
2009-01-27 10:41   ` Ittay Dror
2009-01-27 12:16     ` Sverre Rabbelier
2009-01-27 12:48       ` Ittay Dror
2009-01-27 13:02         ` Michael J Gruber [this message]
2009-01-28  5:26           ` Ittay Dror
  -- strict thread matches above, loose matches on Subject: below --
2009-01-26 19:29 Ittay Dror

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=497F05D7.3060607@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=ittay.dror@gmail.com \
    --cc=srabbelier@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.