Sun, 09 Jul 2006 01:30:30 +0200 use __contains__, index or split instead of str.find
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Sun, 09 Jul 2006 01:30:30 +0200] rev 2579
use __contains__, index or split instead of str.find str.find return -1 when the substring is not found, -1 evaluate to True and is a valid index, which can lead to bugs. Using alternatives when possible makes the code clearer and less prone to bugs. (and __contains__ is faster in microbenchmarks)
Sat, 08 Jul 2006 16:55:49 +0200 coding style: use spaces instead of tabs
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Sat, 08 Jul 2006 16:55:49 +0200] rev 2578
coding style: use spaces instead of tabs
Fri, 07 Jul 2006 15:02:55 -0700 bdiff: improve worst case behavior by 100x.
Vadim Gelfer <vadim.gelfer@gmail.com> [Fri, 07 Jul 2006 15:02:55 -0700] rev 2577
bdiff: improve worst case behavior by 100x. on 5.8MB (244.000 lines) text file with similar lines, hash before this change made diff against empty file take 75 seconds. this change improves performance to 0.6 seconds. result is that clone of smallish repo (137MB) with some files like this takes 1 minute instead of 10 minutes. common case of diff is 10% slower now, probably because of worse cache locality. but diff does not affect overall performance in common case (less than 1% of runtime is in diff when it is working ok), so this tradeoff looks good.
Fri, 07 Jul 2006 11:23:53 +0200 Changed default timeout for run-tests.py from 30 to 180 seconds.
Thomas Arendsen Hein <thomas@intevation.de> [Fri, 07 Jul 2006 11:23:53 +0200] rev 2576
Changed default timeout for run-tests.py from 30 to 180 seconds. As e.g. test-http-proxy already takes quite some time (about a minute here) and tests usually should clean up after themselves, the timeout should only be hit in case of other problems.
Thu, 06 Jul 2006 09:26:31 -0700 Redirect MacPython link to point to python.org
Lee Cantey <lcantey@gmail.com> [Thu, 06 Jul 2006 09:26:31 -0700] rev 2575
Redirect MacPython link to point to python.org
Thu, 06 Jul 2006 15:04:10 -0700 merge with mpm.
Vadim Gelfer <vadim.gelfer@gmail.com> [Thu, 06 Jul 2006 15:04:10 -0700] rev 2574
merge with mpm.
Thu, 06 Jul 2006 15:03:34 -0700 fix problems with external module handling. found by benoit boissinot.
Vadim Gelfer <vadim.gelfer@gmail.com> [Thu, 06 Jul 2006 15:03:34 -0700] rev 2573
fix problems with external module handling. found by benoit boissinot. first fix is to not store module objects in commands.external dict, instead use module names for key into sys.modules. this prevents circular reference during cleanup of aborted transaction. second is to get name right during import of external module.
Thu, 06 Jul 2006 11:49:19 -0700 tests: record few more daemon pids to be safe
Vadim Gelfer <vadim.gelfer@gmail.com> [Thu, 06 Jul 2006 11:49:19 -0700] rev 2572
tests: record few more daemon pids to be safe
Thu, 06 Jul 2006 11:45:34 -0700 tests: add timeouts, make run-tests.py clean up dead daemon processes
Vadim Gelfer <vadim.gelfer@gmail.com> [Thu, 06 Jul 2006 11:45:34 -0700] rev 2571
tests: add timeouts, make run-tests.py clean up dead daemon processes test timeout feature is needed for test with python 2.5 beta. if test does not complete in time (30 seconds is default), it is killed. some times daemon process used in test can be alive after the test is killed by user or by timeout. tests now record daemon pids into $DAEMON_PIDS and run-tests.py kills all living daemons after every test. final little change is to add newline to end of pid file printed by "hg serve", else "cat hg.pid >> $DAEMON_FILES" gives garbage.
Thu, 06 Jul 2006 10:09:24 -0700 run-tests.py: make tests use same python interpreter as test harness.
Vadim Gelfer <vadim.gelfer@gmail.com> [Thu, 06 Jul 2006 10:09:24 -0700] rev 2570
run-tests.py: make tests use same python interpreter as test harness. this is wanted because some tests run python interpreter directly. must use same python interpreter in tests as in main harness or problems will happen because of e.g. different python abi if run-tests.py run with python 2.5 but system python is 2.4. fix is to see if system python is used and is named python. if no, put symlink called python at front of shell search path.
(0) -1000 -300 -100 -10 +10 +100 +300 +1000 +3000 +10000 +30000 tip