# HG changeset patch # User Matt Mackall # Date 2009-11-07 20:09:16 # Node ID a22cdd5e56b787aa4d4e853ed581e3b0d8c4dc03 # Parent f8ca4035a949e0215bc1bca71a0bcbe864cb6d5f subrepo: more robust split for .hgsubstate parsing diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -27,7 +27,7 @@ def state(ctx): 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: