[PATCH] match: adding non-recursive directory matching

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Oct 24 09:16:23 EDT 2016



On 10/22/2016 11:35 AM, Yuya Nishihara wrote:
> On Thu, 20 Oct 2016 09:19:24 -0700, Rodrigo Damazio wrote:
>> The issue is that glob:foo/* is recursive in some cases - e.g. "hg files -I
>> glob:contrib/*" in the hg repo gives me subdirectories of contrib
>> recursively (including e.g. contrib/docker/apache-server, two levels down).
>> After discussing a bit more offline with Martin: I'll check if that's a bug
>> in the matcher's visitdir (rather than a design limitation of glob) before
>> following up on this change.
>
> It appears -I designed to include subdirectories.
>
> https://selenic.com/repo/hg/file/3.9.2/mercurial/match.py#l135

So the solution to Rodrigo usecase would be a "--include-exact" flag?

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list