diff hglib/client.py @ 35:1e33bbea23e5

client: handle spaces correctly in status()
author Idan Kamara <idankk86@gmail.com>
date Sun, 14 Aug 2011 00:56:33 +0300
parents f6e1d9a6e0cd
children 5506a241c826
line wrap: on
line diff
--- a/hglib/client.py	Sun Aug 14 00:51:15 2011 +0300
+++ b/hglib/client.py	Sun Aug 14 00:56:33 2011 +0300
@@ -546,7 +546,10 @@
 
         for entry in out.split('\0'):
             if entry:
-                l.append(tuple(entry.rsplit(' ', 1)))
+                if entry[0] == ' ':
+                    l.append((' ', entry[2:]))
+                else:
+                    l.append(tuple(entry.split(' ', 1)))
 
         return l