[PATCH 3 of 8] localrepo.commit: hook into match.explicitdir
Siddharth Agarwal
sid0 at fb.com
Fri May 3 17:20:34 CDT 2013
On 05/03/2013 03:14 PM, Matt Mackall wrote:
> On Fri, 2013-05-03 at 15:05 -0700, Siddharth Agarwal wrote:
>> # HG changeset patch
>> # User Siddharth Agarwal <sid0 at fb.com>
>> # Date 1367209641 25200
>> # Sun Apr 28 21:27:21 2013 -0700
>> # Node ID 234e4e8080aa898afd5d3e3797ed2683bb6a5dff
>> # Parent 05f54b4c4bddfaa802f47c547139264ee4826366
>> localrepo.commit: hook into match.explicitdir
>>
>> diff -r 05f54b4c4bdd -r 234e4e8080aa mercurial/localrepo.py
>> --- a/mercurial/localrepo.py Sun Apr 28 21:25:41 2013 -0700
>> +++ b/mercurial/localrepo.py Sun Apr 28 21:27:21 2013 -0700
>> @@ -1145,7 +1145,7 @@ class localrepository(object):
>>
>> if not force:
>> vdirs = []
>> - match.dir = vdirs.append
>> + match.explicitdir = vdirs.append
>> match.bad = fail
> This suggests that patch 2 introduces test failures that this fixes?
No, since match.explicitdir and traversedir call match.dir temporarily.
Patch 6 drops that.
More information about the Mercurial-devel
mailing list