git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn and Author files question
@ 2006-04-14 20:34 Seth Falcon
  2006-04-15  9:25 ` Rutger Nijlunsing
  2006-04-15 21:58 ` Eric Wong
  0 siblings, 2 replies; 5+ messages in thread
From: Seth Falcon @ 2006-04-14 20:34 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-svn and Author files question
  2006-04-14 20:34 git-svn and Author files question Seth Falcon
@ 2006-04-15  9:25 ` Rutger Nijlunsing
  2006-04-15 21:58 ` Eric Wong
  1 sibling, 0 replies; 5+ messages in thread
From: Rutger Nijlunsing @ 2006-04-15  9:25 UTC (permalink / raw)
  To: Seth Falcon; +Cc: git

On Fri, Apr 14, 2006 at 01:34:57PM -0700, Seth Falcon wrote:
> 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
----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-svn and Author files question
  2006-04-14 20:34 git-svn and Author files question Seth Falcon
  2006-04-15  9:25 ` Rutger Nijlunsing
@ 2006-04-15 21:58 ` Eric Wong
  2006-04-16  1:57   ` Seth Falcon
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Wong @ 2006-04-15 21:58 UTC (permalink / raw)
  To: Seth Falcon; +Cc: git

Seth Falcon <sethfalcon@gmail.com> wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-svn and Author files question
  2006-04-15 21:58 ` Eric Wong
@ 2006-04-16  1:57   ` Seth Falcon
  2006-04-16  2:22     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Seth Falcon @ 2006-04-16  1:57 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-svn and Author files question
  2006-04-16  1:57   ` Seth Falcon
@ 2006-04-16  2:22     ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2006-04-16  2:22 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-16  2:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-14 20:34 git-svn and Author files question Seth Falcon
2006-04-15  9:25 ` Rutger Nijlunsing
2006-04-15 21:58 ` Eric Wong
2006-04-16  1:57   ` Seth Falcon
2006-04-16  2:22     ` Junio C Hamano

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).