git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn authors file and SVN users with ‘=’ in the username
@ 2014-07-28 11:33 David Braden
  2014-07-28 20:07 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: David Braden @ 2014-07-28 11:33 UTC (permalink / raw)
  To: git@vger.kernel.org

I’m creating a git clone of a svn repository and am trying to set up an authors file to map between the svn users and our git usernames. The svn repository uses the full subject line of a ssl certificate for the user id and so it contains ‘=’ which causes the authors file to be parsed incorrectly as it splits on the first equals.

The code that does the parsing is:

# '<svn username> = real-name <email address>' mapping based on git-svnimport:
sub load_authors {
                open my $authors, '<', $_authors or die "Can't open $_authors $!\n";
                my $log = $cmd eq 'log';
                while (<$authors>) {
                                chomp;
                                next unless /^(.+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/;
                                my ($user, $name, $email) = ($1, $2, $3);
                                if ($log) {
                                                $Git::SVN::Log::rusers{"$name <$email>"} = $user;
                                } else {
                                                $users{$user} = [$name, $email];
                                }
                }
                close $authors or croak $!;
}


How can I work around this limitation?

Thanks

David
David Braden
Tel : 020 7485 7500 ext 3199 | Fax : 020 7485 7575

softwire
Sunday Times Best Small Companies - UK top 25 four years running
Web : www.softwire.com<http://www.softwire.com/> | Addr : 325 Highgate Studios, 53-79 Highgate Road, London NW5 1TL
Softwire Technology Limited. Registered in England no. 3824658. Registered Office : 13 Station Road, London N3 2SB

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

end of thread, other threads:[~2014-07-29  9:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 11:33 git-svn authors file and SVN users with ‘=’ in the username David Braden
2014-07-28 20:07 ` Jeff King
2014-07-29  8:35   ` David Braden
2014-07-29  9:26     ` Jeff King
2014-07-29  9:32       ` David Braden

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