threads / discuss / 23325

git-svn --set-tree question

Subject: git-svn --set-tree question

## tl;dr

2 messages between Apr 4, 2010 and Apr 11, 2010.

replies: 1people: 2as markdown or json

Vitaly R. Tskhovrebov· Apr 4, 2010, 13:27 UTC · lore
Hello, guys.
I have some unusual situation here.

We need to move git repo to svn with commit history. After some research I found a way with creating an empty svn, and then making git svn --set-tree [git_revision_number_here]

Commit history imports well, but i loose commiters' names and comments. How to move them too?

Thanks a lot, Vitaly.
Eric Wong· Apr 11, 2010, 00:50 UTC · re: Vitaly R. Tskhovrebov · lore

Re: git-svn --set-tree question

"Vitaly R. Tskhovrebov" <tskhovrebov@vitalyk.ru> wrote:
Show 10 quoted lines
> Hello, guys.
> 
> I have some unusual situation here.
> 
> We  need  to  move  git  repo  to  svn with commit history. After some
> research I found a way with creating an empty svn, and then making
> git svn --set-tree [git_revision_number_here]
> 
> Commit  history  imports  well,  but  i  loose  commiters'  names  and
> comments. How to move them too?
Hi Vitaly,

You'll have to get the SVN admin to enable changing revprops on the repo itself. There's a hook you need to enable server-side and you'll probably have to write a script for changing the revprops of each revision to map to the git one.

-- 
Eric Wong

← back to recent threads