[PATCH] keyword: pass context to kwtemplater.overwrite

Christian Ebert blacktrash at gmx.net
Tue Jun 8 12:09:30 CDT 2010


* Martin Geisler on Tuesday, June 08, 2010 at 13:59:23 +0200
> Christian Ebert <blacktrash at gmx.net> writes:
>> # HG changeset patch
>> # User Christian Ebert <blacktrash at gmx.net>
>> # Date 1275954002 -3600
>> # Node ID 6e94857052f709d104fe967d270376705ad9ae92
>> # Parent  3d0591a661189bcb0a5e8ef3393c59ecd7e42f79
>> keyword: pass context to kwtemplater.overwrite
>> 
>> Now that we have retrieved the context in every calling function
>> except commit, pass it as argument to kwtemplater.overwrite to
>> avoid looking it up twice.
> 
> Perhaps the node argument should go then?

Yes. I want to get rid of it as well. It's still (ab)used as a
sort of boolean to detect kwexpand/kwshrink, but I'll see if this
can be done in a better way.

c
-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org/
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


More information about the Mercurial-devel mailing list