win32text and excluding patterns

Steve Borho steve at borho.org
Mon Apr 13 21:35:06 CDT 2009


On Mon, Apr 13, 2009 at 8:03 PM, Mark Hammond <skippy.hammond at gmail.com> wrote:
> A correction:
>
> On 14/04/2009 10:49 AM, Mark Hammond wrote:
>
>> Further, if you check the rest of the impl of _filter() in localrepo.py,
>> it uses a dictionary to remember the filters it has loaded, so even if
>> the config kept the order for us, _filter()'s current impl would lose it.
>
> I was wrong about _filter's implementation - it uses lists in the dict,
> so ordering *would* be preserved in that impl - if only the ConfigParser
> kept it for us...

A year or so ago when we added the [merge-patterns] section to the hgrc
man page, this same issue came up.  Someone suggested an ugly
hack, a way to prepend a number to the masks to force them to be
sorted in the order you want them to be applied, but I haven't coaxed
google to show them to me again.

I'm hoping this jogs someone's memory and they'll remember this hack.

--
Steve Borho


More information about the Mercurial-devel mailing list