Brodie Rao <brodie@bitheap.org> [Tue, 03 Aug 2010 13:02:11 -0400] rev 11750
hgcia/color: remove star imports
This plays nicer with demandimport and allows pyflakes to detect undefined
names.
Renato Cunha <renatoc@gmail.com> [Tue, 03 Aug 2010 13:59:14 -0300] rev 11749
hgfixes: added a fixer that makes bytes to be formatted correctly
This patch implement a fixer that replaces all calls to the '%' when bytes
arguments are used to a call to bytesformatter(), a function that knows how to
format byte strings. As one can't be sure if a formatting call is done when
only variables are used in a '%' call, these calls are also translated. The
bytesformatter, in runtime, makes sure to return the "raw" % operation if
that's what was intended.
Renato Cunha <renatoc@gmail.com> [Tue, 03 Aug 2010 13:52:48 -0300] rev 11748
py3kcompat: added a "compatibility layer" for py3k
This patch adds some ugly constructs. The first of them is bytesformatter, a
function that formats strings like when '%' is called. The main motivation for
this function is py3k's strange behavior:
>>> 'foo %s' % b'bar'
"foo b'bar'"
>>> b'foo %s' % b'bar'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'bytes' and 'bytes'
>>> b'foo %s' % 'bar'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'bytes' and 'str'
In other words, if we can't format bytes with bytes, and recall that all
mercurial strings will be converted by a fixer, then things will break badly if
we don't take a similar approach.
The other addition with this patch is that the os.environ dictionary is
monkeypatched to have bytes items. Hopefully this won't be needed in the
future, as python 3.2 might get a os.environb dictionary that holds bytes
items.
Renato Cunha <renatoc@gmail.com> [Tue, 03 Aug 2010 13:41:47 -0300] rev 11747
hgfixes: add a fixer to convert plain strings to bytestrings
This patch implements a 2to3 fixer that converts all plain strings in a python
source file to byte strings syntax. Example:
foo = 'Normal string'
would become
foo = b'Normal string'
The motivation behind this fixer can be found in
http://selenic.com/pipermail/mercurial-devel/2010-June/022363.html or, in other
words: the current hg source assumes that _most_ strings are "meant" to be byte
sequences, so it makes sense to make the convertion implemented by this patch.
As mentioned above, not all mercurial modules want to use strings as bytes,
examples include i18n (which uses unicode), and demandimport (in py3k, module
names are normal strings, thus unicode, and there's no need for a convertion).
Therefore, these modules are blacklisted in the fixer. There are also a few
functions that can take only unicode arguments, thus the convertion shouldn't
be done for those.
Vishakh H <vsh426@gmail.com> [Tue, 03 Aug 2010 19:38:19 +0530] rev 11746
revlog: add shallow header flag
REVLOGSHALLOW header flag to mark revlog as shallow.
The _shallow attribute of the revlog is used to check if the header flag is set.
Vishakh H <vsh426@gmail.com> [Tue, 03 Aug 2010 19:38:19 +0530] rev 11745
revlog: add punched revision flag
index flag to identify a revision as punched, i.e. it contains no data.
REVIDX_PUNCHED_FLAG = 2, is used to mark a revision as punched.
REVIDX_KNOWN_FLAGS is the accumulation of all index flags.
Matt Mackall <mpm@selenic.com> [Tue, 03 Aug 2010 00:10:28 -0500] rev 11744
tests: unify test-tags
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 23:43:06 -0500] rev 11743
tests: unify test-empty
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 23:29:14 -0500] rev 11742
tests: unify test-basic
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 23:27:22 -0500] rev 11741
tests: basic support for unified tests
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 15:44:54 -0500] rev 11740
tests: move script execution in runner helpers
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 13:31:43 -0500] rev 11739
Merge with stable
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 13:30:03 -0500] rev 11738
Added signature for changeset
c00f03a4982e
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 13:30:03 -0500] rev 11737
Added tag 1.6.2 for changeset
c00f03a4982e
Wagner Bruna <wbruna@yahoo.com> [Mon, 02 Aug 2010 13:18:32 -0300] rev 11736
i18n-pt_BR: synchronized with
87dcf758309d
Wagner Bruna <wbruna@yahoo.com> [Mon, 02 Aug 2010 13:11:33 -0300] rev 11735
merge with i18n stable
Jens Bäckman <jens.backman@gmail.com> [Sun, 01 Aug 2010 22:43:13 +0200] rev 11734
i18n-sv: synchronized with
56b41b2cc690
Matt Mackall <mpm@selenic.com> [Mon, 02 Aug 2010 10:55:51 -0500] rev 11733
Merge with stable
Brodie Rao <brodie@bitheap.org> [Mon, 02 Aug 2010 10:48:31 -0400] rev 11732
color: call correct superclass method in write_err
Without this fix, any calls to write_err would go to stdout instead of
stderr, and calls during pushbuffer would cause unpack ValueErrors on
popbuffer.
timeless <timeless@gmail.com> [Fri, 30 Jul 2010 10:38:54 +0300] rev 11731
convert/progress: use plural and avoid retrieving
Matt Mackall <mpm@selenic.com> [Sun, 01 Aug 2010 16:02:56 -0500] rev 11730
qfinish: fix range logic for --applied
qbase:qtip can include non-mq csets, use qbase::qtip instead
timeless <timeless@gmail.com> [Tue, 20 Jul 2010 20:53:48 +0200] rev 11729
rebase/progress: Adding progress for rebasing
timeless <timeless@gmail.com> [Thu, 22 Jul 2010 18:47:46 +0300] rev 11728
record: count lines changed as the number of lines added or removed
per "record" hunk
Record deals in hunks which are tighter than traditional patch hunks,
really only a single run of additions/removals. Another addition, even a
line after a fixed line is treated as a new hunk by record.
Brodie Rao <brodie@bitheap.org> [Sun, 01 Aug 2010 16:26:02 -0400] rev 11727
color: pass write/write_err to win32print correctly (
issue2312)
Matt Mackall <mpm@selenic.com> [Sun, 01 Aug 2010 13:52:42 -0500] rev 11726
Merge with stable
Matt Mackall <mpm@selenic.com> [Sun, 01 Aug 2010 13:49:43 -0500] rev 11725
Added signature for changeset
bf1774d95bde
Matt Mackall <mpm@selenic.com> [Sun, 01 Aug 2010 13:49:42 -0500] rev 11724
Added tag 1.6.1 for changeset
bf1774d95bde
Matt Mackall <mpm@selenic.com> [Sun, 01 Aug 2010 08:54:30 -0500] rev 11723
Merge with stable
Wagner Bruna <wbruna@yahoo.com> [Sun, 01 Aug 2010 01:54:31 -0300] rev 11722
i18n-pt_BR: synchronized with
db426935fa94
Wagner Bruna <wbruna@yahoo.com> [Sun, 01 Aug 2010 01:51:21 -0300] rev 11721
Merge with stable