Wed, 20 May 2009 02:08:53 +0200 workingfilectx: always use the same filelog, even for renames
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Wed, 20 May 2009 02:08:53 +0200] rev 8528
workingfilectx: always use the same filelog, even for renames workingfilectx() was using the "src" filelog in case the file was renamed in the working copy. For consistency, stop special-casing it. This allows us to remove some duplication between filectx and workingfilectx.
Wed, 20 May 2009 00:52:46 +0200 use 'x is None' instead of 'x == None'
Martin Geisler <mg@lazybytes.net> [Wed, 20 May 2009 00:52:46 +0200] rev 8527
use 'x is None' instead of 'x == None' The built-in None object is a singleton and it is therefore safe to compare memory addresses with is. It is also faster, how much depends on the object being compared. For a simple type like str I get: | s = "foo" | s = None ----------+-----------+---------- s == None | 0.25 usec | 0.21 usec s is None | 0.17 usec | 0.17 usec
Wed, 20 May 2009 00:43:23 +0200 patch: simplify Boolean expression slightly
Martin Geisler <mg@lazybytes.net> [Wed, 20 May 2009 00:43:23 +0200] rev 8526
patch: simplify Boolean expression slightly The context variable is either True, False or None. Abbreviate it as C and we get the following truth table where the second column is the original expression and the third column is the new expression: C | C or C == None | C is not False True | True | True False | False | False None | True | True
Tue, 05 May 2009 10:29:34 +0200 mq: new method invalidate
Simon Heimberg <simohe@besonet.ch> [Tue, 05 May 2009 10:29:34 +0200] rev 8525
mq: new method invalidate Introduce method invalidate (similar to dirstate and repo).
Mon, 04 May 2009 03:35:42 +0200 mq: only read files when needed
Simon Heimberg <simohe@besonet.ch> [Mon, 04 May 2009 03:35:42 +0200] rev 8524
mq: only read files when needed use util.propertycache as in dirstate
Tue, 19 May 2009 23:02:17 +0200 tests: replace #...# syntax with {...}
Martin Geisler <mg@lazybytes.net> [Tue, 19 May 2009 23:02:17 +0200] rev 8523
tests: replace #...# syntax with {...}
Fri, 15 May 2009 09:43:30 +0200 match: use self.exact instead of lambda
Simon Heimberg <simohe@besonet.ch> [Fri, 15 May 2009 09:43:30 +0200] rev 8522
match: use self.exact instead of lambda self.exact uses a set and does not need an extra copy of the files
Thu, 14 May 2009 19:47:52 +0200 dirstate: use quicker matchfn() instead of match() everywhere
Simon Heimberg <simohe@besonet.ch> [Thu, 14 May 2009 19:47:52 +0200] rev 8521
dirstate: use quicker matchfn() instead of match() everywhere matchfn does the same as match(), but a direct "link"
(0) -3000 -1000 -300 -100 -30 -10 -8 +8 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip