[PATCH 4 of 5 V2] config: give it a searchpaths option, for extra places for config files

Jordi Gutiérrez Hermoso jordigh at octave.org
Wed May 6 08:22:07 CDT 2015


On Wed, 2015-05-06 at 15:40 +0900, Yuya Nishihara wrote:
> On Tue, 05 May 2015 17:39:12 -0400, Jordi Gutiérrez Hermoso wrote:
> > # HG changeset patch
> > # User Jordi Gutiérrez Hermoso <jordigh at octave.org>
> > # Date 1430860459 14400
> > #      Tue May 05 17:14:19 2015 -0400
> > # Node ID b7e9b8d77e46052e639fca04b1aee2cfdefbd4f7
> > # Parent  dabfe2777f993de4ed1ed16886559d5ebf42a385
> > config: give it a searchpaths option, for extra places for config files
[snip]
> > +                        else:
> > +                            return False
> > +            if m:
> > +                expanded = util.expandpath(m.group(1))
> > +                searchpaths = [os.path.dirname(src)] + self._searchpaths
> > +
> > +                for base in searchpaths:
> > +                    inc = os.path.normpath(os.path.join(base, expanded))
> > +
> > +                    if includefile(inc):
> > +                        continue
> 
> typo of "break" ?

Ah, curses, yes, you're right again. Thank you. I'll amend and resend.

- Jordi G. H.




More information about the Mercurial-devel mailing list