{"thread":{"id":"26124","subject":"git-svn author file and svn2cl compatibility","startedAt":"2010-12-22T18:41:10Z","lastAt":"2010-12-23T08:11:20Z","messageCount":2,"participants":["strk"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"158495","messageId":"20101222184110.GA53847@keybit.net","threadId":"26124","inReplyTo":null,"subject":"git-svn author file and svn2cl compatibility","fromName":"strk","fromEmail":"strk@keybit.net","sentAt":"2010-12-22T18:41:10Z","receivedAt":"2010-12-22T18:41:10Z","isPatch":false,"sender":{"key":"strk@keybit.net","avatar":"https://gravatar.com/avatar/9a6c11d66829bf429efe5ef4c066d50272394481cc3f8ae8116a006c81dc6cf9?d=mp&s=160"},"body":"The svn2cl tool [1] supports an author file to use for\ngenerating the ChangeLog.\n\n[1] http://arthurdejong.org/svn2cl/\n\nFormat of the file is:\n nick1:Name <email>\n nick2:Name 2 <email2>\n\nIt would be nice if git-svn could support the same format\nin addition to the one using ``='' instead of ``:''.\n\nThat way you might have the authors file already available\nin projects that made use of svn2cl.\n\nDoes it make sense ?\n\nPlease include me in reply as I'm not subscribed.\n\n--strk; \n\n  ()   Free GIS & Flash consultant/developer\n  /\\   http://strk.keybit.net/services.html\n"},{"id":"158521","messageId":"20101223081120.GA60001@keybit.net","threadId":"26124","inReplyTo":"20101222184110.GA53847@keybit.net","subject":"Re: git-svn author file and svn2cl compatibility","fromName":"strk","fromEmail":"strk@keybit.net","sentAt":"2010-12-23T08:11:20Z","receivedAt":"2010-12-23T08:11:20Z","isPatch":false,"sender":{"key":"strk@keybit.net","avatar":"https://gravatar.com/avatar/9a6c11d66829bf429efe5ef4c066d50272394481cc3f8ae8116a006c81dc6cf9?d=mp&s=160"},"body":"I attach a patch implementing the added support.\n\n--strk;\n\nOn Wed, Dec 22, 2010 at 07:41:10PM +0100, strk wrote:\n> The svn2cl tool [1] supports an author file to use for\n> generating the ChangeLog.\n> \n> [1] http://arthurdejong.org/svn2cl/\n> \n> Format of the file is:\n>  nick1:Name <email>\n>  nick2:Name 2 <email2>\n> \n> It would be nice if git-svn could support the same format\n> in addition to the one using ``='' instead of ``:''.\n> \n> That way you might have the authors file already available\n> in projects that made use of svn2cl.\n> \n> Does it make sense ?\n> \n> Please include me in reply as I'm not subscribed.\n\n\n>From 0e6d6f3415b6d206e9cd8001ed4ce994e4150c39 Mon Sep 17 00:00:00 2001\nFrom: Sandro Santilli <strk@keybit.net>\nDate: Thu, 23 Dec 2010 09:07:10 +0100\nSubject: [PATCH] Also accept svn2cl format for authors file\n\n---\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 177dd25..6fd0f7f 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -1424,7 +1424,7 @@ sub load_authors {\n \tmy $log = $cmd eq 'log';\n \twhile (<$authors>) {\n \t\tchomp;\n-\t\tnext unless /^(.+?|\\(no author\\))\\s*=\\s*(.+?)\\s*<(.+)>\\s*$/;\n+\t\tnext unless /^(.+?|\\(no author\\))\\s*[=:]\\s*(.+?)\\s*<(.+)>\\s*$/;\n \t\tmy ($user, $name, $email) = ($1, $2, $3);\n \t\tif ($log) {\n \t\t\t$Git::SVN::Log::rusers{\"$name <$email>\"} = $user;\n-- \n1.7.0.4\n\n"}]}