threads / discuss / 3870

git-svn and Author files question

Subject: git-svn and Author files question

## tl;dr

5 messages between Apr 14, 2006 and Apr 16, 2006.

replies: 4people: 4as markdown or json

Seth Falcon· Apr 14, 2006, 20:34 UTC · lore
Hi all,

I've been using git to manually track changes to a project that uses svn as its primary SCM.

git-svn looks like it can help me streamline my workflow, but I'm getting stuck with the following:

    mkdir foo
    cd foo
    git-svn init $URL  <--- the svn URL
    git-svn fetch
    Author: dfcimm3 not defined in  file
:-(

Can someone point me to the file and the place that describes what I should put in it? There are many committers to the svn project. I'm hoping that I will not have to enumerate all of their names in some file.

I'm using git version 1.3.0.rc1.g40e9, and BTW, enjoying it very much.
Thanks,
+ seth
Rutger Nijlunsing· Apr 15, 2006, 09:25 UTC · re: Seth Falcon · lore

Re: git-svn and Author files question

On Fri, Apr 14, 2006 at 01:34:57PM -0700, Seth Falcon wrote:
Show 20 quoted lines
> Hi all,
> 
> I've been using git to manually track changes to a project that uses
> svn as its primary SCM.
> 
> git-svn looks like it can help me streamline my workflow, but I'm
> getting stuck with the following:
> 
>     mkdir foo
>     cd foo
>     git-svn init $URL  <--- the svn URL
>     git-svn fetch
>     Author: dfcimm3 not defined in  file
> 
> :-(
> 
> Can someone point me to the file and the place that describes what I
> should put in it?  There are many committers to the svn project.  I'm
> hoping that I will not have to enumerate all of their names in some
> file.

I'm not familiar with git-svn, but the $GIT_DIR/svn-authors file used by git-svnimport.perl and http://www.wingding.demon.nl/git-svnconvert.rb contains lines like:

svn-author = Full Name <email@domain>

And yes, you've got to enumerate the names you want transformed. Another option is to give no authors, but then the SVN author names will be used (with email 'unknown' or something).

-- 
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
Eric Wong· Apr 15, 2006, 21:58 UTC · re: Seth Falcon · lore

Re: git-svn and Author files question

Seth Falcon <sethfalcon@gmail.com> wrote:
Show 22 quoted lines
> Hi all,
> 
> I've been using git to manually track changes to a project that uses
> svn as its primary SCM.
> 
> git-svn looks like it can help me streamline my workflow, but I'm
> getting stuck with the following:
> 
>     mkdir foo
>     cd foo
>     git-svn init $URL  <--- the svn URL
>     git-svn fetch
>     Author: dfcimm3 not defined in  file
> 
> :-(
> 
> Can someone point me to the file and the place that describes what I
> should put in it?  There are many committers to the svn project.  I'm
> hoping that I will not have to enumerate all of their names in some
> file.
> 
> I'm using git version 1.3.0.rc1.g40e9, and BTW, enjoying it very much.

There were some embarassing bugs between the git-svn in rc1 and rc2. Current versions should work. Rutger was right about the file format, same as the other importers.

Sorry about so long to reply to questions this week, left hand/wrist is wrecked.

@Pavel, Junio: I should have doc updates coming in hopefully in the next few days, unless anybody wants to help :)

-- 
Eric Wong
Seth Falcon· Apr 16, 2006, 01:57 UTC · re: Eric Wong · lore

Re: git-svn and Author files question

Eric Wong <normalperson@yhbt.net> writes:
> There were some embarassing bugs between the git-svn in rc1 and rc2.
> Current versions should work.  Rutger was right about the file format,
> same as the other importers.

Thanks for the explanation (and thanks to Rutger as well for the reply!).

I managed to get git-svn fetch to work by specifying an author file with -A.

I'm a bit confused about why I have to do this. Is there a way around this? Or perhaps a way to force a bogus email address based on svn user name?

[ok, maybe I'm less confused than I'm letting on: the email requirement is, I think, because that's what suits the main git "customers". If I was using git for a project's primary SCM, I would have no problem with this. In fact, we started using email addresses as user names in svn a long time ago.

But it seems to me that (1) using git to track a project that uses a less featureful SCM is way cool, and (2) having to manually muck with an authors file is kinda uncool.]

> Sorry about so long to reply to questions this week, left hand/wrist is
> wrecked.
Hope it heals quickly!
Thanks for listening and again for the help,
+ seth
Junio C Hamano· Apr 16, 2006, 02:22 UTC · re: Seth Falcon · lore

Re: git-svn and Author files question

Seth Falcon <sethfalcon@gmail.com> writes:
> I'm a bit confused about why I have to do this.  Is there a way around
> this?  Or perhaps a way to force a bogus email address based on svn
> user name?

I think this is a reasonable request. IIRC, the original foreign SCM interface (git-cvsimport) did "foobar <foobar>" if there is no mapping available, so that might be a good example to follow.

← back to recent threads