D7577: hg-core: implement Mercurial's config file discovery logic

kevincox (Kevin Cox) phabricator at mercurial-scm.org
Mon Dec 9 07:23:44 EST 2019


kevincox added inline comments.
kevincox accepted this revision.

INLINE COMMENTS

> config.rs:145
> +            let paths = glob_res
> +                .filter_map(|x| if let Ok(x) = x { Some(x) } else { None })
> +                .sorted();

I believe this can just be `.flatten()`.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7577/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7577

To: indygreg, #hg-reviewers, kevincox
Cc: durin42, kevincox, mercurial-devel


More information about the Mercurial-devel mailing list