Patrick Mezard <pmezard@gmail.com> [Thu, 21 May 2009 22:41:18 +0200] rev 8537
Merge with crew-stable
Patrick Mezard <pmezard@gmail.com> [Thu, 21 May 2009 20:32:45 +0200] rev 8536
hgwebdir: fix [collections] evaluation under Windows
Virtual and real path separators are not the same under Windows.
Martin Geisler <mg@lazybytes.net> [Wed, 20 May 2009 12:20:27 +0200] rev 8535
cmdutil: mark string for translation
Martin Geisler <mg@lazybytes.net> [Wed, 20 May 2009 10:50:23 +0200] rev 8534
util: use "is" for True/False/None comparisons
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Wed, 20 May 2009 21:16:04 +0200] rev 8533
remove: warn if unversionned files are specified (
issue1454)
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Wed, 20 May 2009 19:37:25 +0200] rev 8532
fetch: allow -r for remote repos
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Wed, 20 May 2009 18:35:47 +0200] rev 8531
filelog encoding: move the encoding/decoding into store
the escaping of directories ending with .i or .d doesn't
really belong to filelog.
we put the encoding/decoding in store instead, for backwards
compat, streamclone and the fncache file format still uses the
partially encoded filenames.
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Wed, 20 May 2009 18:35:41 +0200] rev 8530
store: refactor the fncache handling
put all the fncache file writing and reading in
the same place.
Jeremy Whitlock <jcscoobyrs@gmail.com> [Wed, 20 May 2009 16:04:37 +0200] rev 8529
hgweb: make hgwebdir handle dict/list paths the same as config paths
Before this patch, the only way to get hgwebdir to honor the recursive paths
was to create a config object or a config file with the recursive paths in it.
This patch makes hgwebdir treat paths the same whether passed in as a list,
tuple, config or however hgwebdir supports passing paths.
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.
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
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