- May 08, 2009
-
-
Rocco Rutte authored
RfC2822 mandates a line length limit of 998 byte + CRLF. Python mail tools break lines at 990 byte. To prevent that, we quoted-printable encode overly long lines.
-
Martin Geisler authored
-
Bryan O'Sullivan authored
The posixfile_nt code hits the win32 file API directly, which essentially amounts to performing a system call for every read and write. This is slow. We add a C extension that lets us use a Python file object instead, but preserve our desired POSIX-like semantics (the ability to rename or delete a file that is being accessed). If the C extension is not available (e.g. in a VPS environment without a compiler), we fall back to the posixfile_nt code.
-
- Mar 26, 2009
-
-
Bryan O'Sullivan authored
-
Bryan O'Sullivan authored
-
Bryan O'Sullivan authored
-
- May 08, 2009
-
-
Dirkjan Ochtman authored
-
- May 04, 2009
-
-
Nicolas Dumazet authored
-
Nicolas Dumazet authored
Remove hginside var and the test it relates to: not( top or not hginside ) == (not top) and hginside, so the only case when nothing will be yielded is when hginside is True and top is False. Because of the returns placed upstream, this case will not happen anymore. We can then safely remove hginside and the (if)s
-
Nicolas Dumazet authored
When not in root repo, if we meet a .hg, bail out. break was used, but return can be safely used instead: if we go through break then (top or not hginside) == False -> nothing is done after the for loop
-
Nicolas Dumazet authored
Do not 'yield tuple, boolean' to filter later on the boolean. Test the boolean first, and yield tuple only if needed.
-
Nicolas Dumazet authored
compute string concatenation only once
-
Nicolas Dumazet authored
Do not yield (bool, tuple) in a subfunction and check later: 'if not bool: yield tuple'. Instead simplify so the tuple doesnt get yielded on the first time, to avoid systematic checks.
-
Nicolas Dumazet authored
* Removing useless path computation * moving 'reporoot' computation down to the first call to avoid confusion with the parameter used in walkit()
-
- May 08, 2009
-
-
Matt Mackall authored
-
Matt Mackall authored
-
Matt Mackall authored
-
Matt Mackall authored
-
Matt Mackall authored
Smaller revlogs can be read with a single read, do it on open.
-
Sverre Rabbelier authored
Make the requirement of an argument for -u a little more explicit.
-
- Apr 28, 2009
-
-
Simon Heimberg authored
-
- May 07, 2009
-
-
Giorgos Keramidas authored
When we try to build manpages with xmlto and sed, but xmlto is missing fail at the xmlto stage. Otherwise, one may run `cd doc; make' and miss the warnings like: xmlto: not found sed: hg.1: No such file or directory and end up with empty files installed as manpages.
-
- May 08, 2009
-
-
Simon Heimberg authored
-
Simon Heimberg authored
-
Greg Ward authored
-
- May 07, 2009
-
-
Martin Geisler authored
-
Martin Geisler authored
The run-tests.py script has a list of required tools and awk is not one of them -- luckily it could be replaced by sed in this case.
-
- May 06, 2009
-
-
Greg Ward authored
-
- May 07, 2009
-
-
Martin Geisler authored
-
- May 06, 2009
-
-
Martin Geisler authored
-
Martin Geisler authored
The subprocess module is not thread safe. Spawning a thread to read the output leads to exceptions like this when Mercurial exits: Exception exceptions.TypeError: TypeError("'NoneType' object is not callable",) in <bound method Popen.__del__ of <subprocess.Popen object at 0x9ed0dcc>> ignored The bug is already reported in the Python bug tracker: http://bugs.python.org/issue1731717
-
Martin Geisler authored
-
Giorgos Keramidas authored
-
- May 04, 2009
-
-
Matt Mackall authored
-
Matt Mackall authored
-
Martin Geisler authored
Some modules (like revlog) would import util.sha1 as _sha1. This defeats the purpose of having util.sha1 overwrite itself with a faster version -- revlog would end up always calling the slow version. By always delegating to util._fastsha1 we avoid this at the cost of an extra (but unconditional) indirection.
-
Martin Geisler authored
This hash function is broken and should not be used by new code. It is currently only used by keepalive.
-
Sune Foldager authored
-
Henrik Stuart authored
This adds a change to the way that abort is processed, as it will not continue truncating files beyond the first failure, otherwise the respective functionality is maintained, i.e. abort will not unlink files, but rollback will. Co-contributor: Sune Foldager <cryo@cyanite.org>
-
Henrik Stuart authored
-