[PATCH 14/21] print-svn-authors: improve

Felipe Contreras felipe.contreras at gmail.com
Sun May 13 10:14:22 EDT 2012


So that the output is actually usable.

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 print-svn-authors.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/print-svn-authors.py b/print-svn-authors.py
index 018a1d2..dd379d1 100755
--- a/print-svn-authors.py
+++ b/print-svn-authors.py
@@ -24,11 +24,11 @@ with open("svn-patch-authors", "r") as f:
         revision = l[:index]
         author = l[index+1:]
         try:
-            author = author[:author.index("(")].strip()
+            tmp = author[:author.index("(")].strip()
         except ValueError:
-            pass
+            tmp = author
         try:
-            author = author_map[author.lower()]
+            author = "# " + author_map[tmp.lower()]
         except:
             pass
         print "{revision} {author}".format(revision=revision, author=author)
-- 
1.7.10.1




More information about the Devel mailing list