# merging commit history

3 messages from 2013-07-11 to 2013-07-17. Participants: Stephen & Linda Smith, Andrew Ardill.
Thread: https://gitlist.dev/t/34411

## Stephen & Linda Smith, 2013-07-11 23:43

Subject: merging commit history
Message-ID: <3186432.VaN86YJOtL@thunderbird>
URL: https://gitlist.dev/e/3186432.VaN86YJOtL%40thunderbird

```
I'm working on a project that used to use a proprietary CM system (aka oldCM).   At a point in time, the state of the code was frozen and used as the basis for commits in SVN.

What I would like to to do is take the individal commits from the oldCM and place them into git knowing that the time/date stamps won't match.  Then I want to do whatever is necessary to
setup git so that I can run "svn rebase" to pull in the commits from the SVN repository.

What is the easy way to do this?

```

## Andrew Ardill, 2013-07-12 00:11

Subject: Re: merging commit history
Message-ID: <CAH5451njL_AQqi0pHMsUvW9iC69Y8sEEwgHr9iCA9FoG=a8E_A@mail.gmail.com>
URL: https://gitlist.dev/e/CAH5451njL_AQqi0pHMsUvW9iC69Y8sEEwgHr9iCA9FoG%3Da8E_A%40mail.gmail.com
In-Reply-To: <3186432.VaN86YJOtL@thunderbird>

```
On 12 July 2013 09:43, Stephen & Linda Smith <ischis2@cox.net> wrote:
> I'm working on a project that used to use a proprietary CM system (aka oldCM).   At a point in time, the state of the code was frozen and used as the basis for commits in SVN.
>
> What I would like to to do is take the individal commits from the oldCM and place them into git knowing that the time/date stamps won't match.  Then I want to do whatever is necessary to
> setup git so that I can run "svn rebase" to pull in the commits from the SVN repository.
>
> What is the easy way to do this?


There may be other tools that make this easier, but if I had this
problem I would simply create two repositories, one for oldCM and one
for SVN. I would then merge the two together (as branches with
different roots) and do my rebase from there.

I haven't tried this, and maybe there is something I am missing, but
there shouldn't be too much pain going that way.


Regards,

Andrew Ardill

```

## Stephen & Linda Smith, 2013-07-17 01:08

Subject: Re: merging commit history
Message-ID: <2783346.mfr0aMU5vx@thunderbird>
URL: https://gitlist.dev/e/2783346.mfr0aMU5vx%40thunderbird
In-Reply-To: <3186432.VaN86YJOtL@thunderbird>

```
I did as Andrew suggested and created two git repositories  with one  branch using oldCM history and the second branch using having the svn history.  

Then I checked out the svn branch and rebased onto oldCM.   The head of the combined branch is named master.

How do I manually set git/git-svn up so that HEAD  points to -r rev  in the svn repository?    Googling doesn't come up with a solution; I previously thought google knows all.

When done, I would like git svn dcommit to be able to commit to the svn repo.

Thanks
sps

On Friday, July 12, 2013 10:11:41 AM Andrew Ardill wrote:
> On 12 July 2013 09:43, Stephen & Linda Smith <ischis2@cox.net> wrote:
> > I'm working on a project that used to use a proprietary CM system (aka oldCM).   At a point in time, the state of the code was frozen and used as the basis for commits in SVN.
> >
> > What I would like to to do is take the individal commits from the oldCM and place them into git knowing that the time/date stamps won't match.  Then I want to do whatever is necessary to
> > setup git so that I can run "svn rebase" to pull in the commits from the SVN repository.
> >
> > What is the easy way to do this?
> 
> 
> There may be other tools that make this easier, but if I had this
> problem I would simply create two repositories, one for oldCM and one
> for SVN. I would then merge the two together (as branches with
> different roots) and do my rebase from there.
> 
> I haven't tried this, and maybe there is something I am missing, but
> there shouldn't be too much pain going that way.
> 
> 
> Regards,
> 
> Andrew Ardill
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

```
