[Svnmerge] [patch] fix get_svninfo parsing -- ":", not ": "

Daniel Colascione danc at merrillpress.com
Tue Apr 8 15:30:05 PDT 2008


If an "svn info" field is empty, one might see a line like
'Last Changed Author:', which makes split(": ") choke.

Index: svnmerge.py
===================================================================
--- svnmerge.py	(revision 2755)
+++ svnmerge.py	(working copy)
@@ -778,7 +778,7 @@
         L = L.strip()
         if not L:
             continue
-        key, value = L.split(": ", 1)
+        key, value = L.split(":", 1)
         info[key] = value.strip()
     _cache_svninfo[target] = info
     return info



More information about the Svnmerge mailing list