subrepo: more robust split for .hgsubstate parsing
authorMatt Mackall <mpm@selenic.com>
Sat, 07 Nov 2009 14:09:16 -0600
changeset 9752 a22cdd5e56b7
parent 9751 f8ca4035a949
child 9753 ffda19f351fa
subrepo: more robust split for .hgsubstate parsing
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Sat Nov 07 14:07:45 2009 -0600
+++ b/mercurial/subrepo.py	Sat Nov 07 14:09:16 2009 -0600
@@ -27,7 +27,7 @@
     if '.hgsubstate' in ctx:
         try:
             for l in ctx['.hgsubstate'].data().splitlines():
-                revision, path = l.split()
+                revision, path = l.split(" ", 1)
                 rev[path] = revision
         except IOError, err:
             if err.errno != errno.ENOENT: