comparison mercurial/subrepo.py @ 10174:65b6dc44cdbf

subrepo: fix includes support in .hgsub
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Dec 2009 17:25:46 -0600
parents 606b563e41db
children fc32b2fc468e
comparison
equal deleted inserted replaced
10173:513c89a60f20 10174:65b6dc44cdbf
14 14
15 def state(ctx): 15 def state(ctx):
16 p = config.config() 16 p = config.config()
17 def read(f, sections=None, remap=None): 17 def read(f, sections=None, remap=None):
18 if f in ctx: 18 if f in ctx:
19 try: 19 p.parse(f, ctx[f].data(), sections, remap, read)
20 p.parse(f, ctx[f].data(), sections, remap) 20 else:
21 except IOError, err: 21 raise util.Abort(_("subrepo spec file %s not found") % f)
22 if err.errno != errno.ENOENT: 22
23 raise 23 if '.hgsub' in ctx:
24 read('.hgsub') 24 read('.hgsub')
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():