Mercurial > hg
changeset 10174:65b6dc44cdbf
subrepo: fix includes support in .hgsub
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Dec 2009 17:25:46 -0600 |
parents | 513c89a60f20 |
children | fc32b2fc468e |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Thu Dec 31 00:03:19 2009 +0100 +++ b/mercurial/subrepo.py Thu Dec 31 17:25:46 2009 -0600 @@ -16,12 +16,12 @@ p = config.config() def read(f, sections=None, remap=None): if f in ctx: - try: - p.parse(f, ctx[f].data(), sections, remap) - except IOError, err: - if err.errno != errno.ENOENT: - raise - read('.hgsub') + p.parse(f, ctx[f].data(), sections, remap, read) + else: + raise util.Abort(_("subrepo spec file %s not found") % f) + + if '.hgsub' in ctx: + read('.hgsub') rev = {} if '.hgsubstate' in ctx: