comparison mercurial/subrepo.py @ 9752:a22cdd5e56b7

subrepo: more robust split for .hgsubstate parsing
author Matt Mackall <mpm@selenic.com>
date Sat, 07 Nov 2009 14:09:16 -0600
parents e2fd9b62349b
children 58a6f3f4d553
comparison
equal deleted inserted replaced
9751:f8ca4035a949 9752:a22cdd5e56b7
25 25
26 rev = {} 26 rev = {}
27 if '.hgsubstate' in ctx: 27 if '.hgsubstate' in ctx:
28 try: 28 try:
29 for l in ctx['.hgsubstate'].data().splitlines(): 29 for l in ctx['.hgsubstate'].data().splitlines():
30 revision, path = l.split() 30 revision, path = l.split(" ", 1)
31 rev[path] = revision 31 rev[path] = revision
32 except IOError, err: 32 except IOError, err:
33 if err.errno != errno.ENOENT: 33 if err.errno != errno.ENOENT:
34 raise 34 raise
35 35