mercurial/subrepo.py
branchstable
changeset 16595 2de6ac4ac17c
parent 16555 4955e7bf085c
child 16596 95ca6c8b38da
--- a/mercurial/subrepo.py	Fri May 04 14:36:40 2012 -0400
+++ b/mercurial/subrepo.py	Fri May 04 14:19:52 2012 +0200
@@ -44,6 +44,9 @@
     if '.hgsubstate' in ctx:
         try:
             for l in ctx['.hgsubstate'].data().splitlines():
+                l = l.lstrip()
+                if not l:
+                    continue
                 revision, path = l.split(" ", 1)
                 rev[path] = revision
         except IOError, err: