Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 20:31:35 +0100] rev 10132
win32text: do not mention hgext in warning
Patrick Mezard <pmezard@gmail.com> [Wed, 23 Dec 2009 19:31:48 +0100] rev 10131
patch: drop unused hunk.newctrl()
Patrick Mezard <pmezard@gmail.com> [Wed, 23 Dec 2009 19:31:48 +0100] rev 10130
test-import-eol: improve binary hunks test
Patrick Mezard <pmezard@gmail.com> [Wed, 23 Dec 2009 19:31:48 +0100] rev 10129
diffhelpers: handle CRLF in hunk last line without EOL
Note that diff generation code always ends last lines without newline with a
LF, so this is a tolerance.
Patrick Mezard <pmezard@gmail.com> [Wed, 23 Dec 2009 19:31:48 +0100] rev 10128
patch: drop eol normalization fast-path for 'lf' and 'crlf'
With eolmode set to 'lf' or 'crlf' we avoided the hunk duplication and
normalization by reading the input patch in text mode. Dropping this
optimization simplifies code expectations for a small overhead.
The change in test-mq-eol comes from a tolerance to CRLF instead of LF for last
lines without newlines being broken by this revision. This tolerance was only
partially supported and will be added again in a better way.
Patrick Mezard <pmezard@gmail.com> [Wed, 23 Dec 2009 19:31:47 +0100] rev 10127
patch: fix eolmode=auto with new files
If target file does not exist or has no eol, current code was normalizing eols
to LF. Preserve patch file eols instead.
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 19:18:03 +0100] rev 10126
Merge with stable
Christian Ebert <blacktrash@gmx.net> [Wed, 23 Dec 2009 17:46:48 +0000] rev 10125
tests highlight, keyword: load extensions with "ext ="
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 19:11:37 +0100] rev 10124
setup.py: keep Python 2.3 compatibility
Though we only support Python 2.4 or greater, we should keep setup.py
compatible with earlier versions on the syntactic level. Otherwise
people will simply get a SyntaxError when trying to install Mercurial
with an old version of Python. With this change, the setup.py file can
be imported with Python 2.3 and we then issue a friendly error message
when we detect that Python is too old.
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 18:40:57 +0100] rev 10123
Merge with stable
Christian Ebert <blacktrash@gmx.net> [Wed, 23 Dec 2009 18:40:21 +0100] rev 10122
extensions help: make disabling example analogous to enabling example
The example for enabling an extension in the module search path is:
foo =
foo can only be disabled by:
foo = !
and not by:
hgext.foo = !
As the examples now omit "hgext." the example
hgext.bar = !
is misleading.
Henri Wiechers <hwiechers@gmail.com> [Mon, 21 Dec 2009 23:01:46 +0200] rev 10121
test-help: improve test coverage
Adds a test for using the help option with the version option.
Extends test coverage of commands.help_ by another 2 lines.
Steve Borho <steve@borho.org> [Sat, 05 Dec 2009 14:18:31 -0600] rev 10120
setup: ignore 'not importing' warnings during version detection
Python will issue an ImportWarning when seeing 'import locale' if
there is a locale/ directory present without a __init__.py file.
The warning is silent by default, but it somehow shows up anyway on
Windows when setup.py executed hg. The warning causes runcmd to panic
since it sees output on stderr.
This patch ignores warnings on stderr about not importing a package.
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 18:13:15 +0100] rev 10119
tests: load with "ext =" instead of "hgext.ext ="
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 18:04:57 +0100] rev 10118
Merge with stable
Christian Ebert <blacktrash@gmx.net> [Wed, 23 Dec 2009 12:04:17 +0000] rev 10117
keyword: go into restricted mode when transplanting
Expanded keyword is read into diff with transplant -b otherwise.
Test this scenario.
Thanks to Adam Berkes for providing an example case.
Christian Ebert <blacktrash@gmx.net> [Wed, 23 Dec 2009 12:04:04 +0000] rev 10116
keyword: do not monkeypatch diff when in restricted mode
kw_diff actually disabled restricted mode when 2 revisions were given,
because it effectively disables the extension in this case.
But the commands working with diff and patch need restricted mode
always enabled, i.e. expansion enabled when writing to the
working directory and - crucial for these commands - no expansion
when reading the filelog.
Dirkjan Ochtman <dirkjan@ochtman.nl> [Wed, 23 Dec 2009 13:12:36 +0100] rev 10115
merge with default
timeless <timeless@mozdev.org> [Wed, 23 Dec 2009 13:09:11 +0100] rev 10114
mq: qnew -f should reject merge working directories
Martin Geisler <mg@lazybytes.net> [Tue, 22 Dec 2009 00:50:15 +0100] rev 10113
Merge with stable
Martin Geisler <mg@lazybytes.net> [Tue, 22 Dec 2009 00:50:03 +0100] rev 10112
hgext: enable extensions without "hgext." prefix in help texts
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 14 Dec 2009 00:32:29 +0900] rev 10111
cmdutil: replace sys.maxint with None as default value in loglimit
Semantically, it is better to use None over any other value when there is
"no value". Using maxint in this context is quite hackish, and is not forward
compatible.
Henri Wiechers <hwiechers@gmail.com> [Mon, 21 Dec 2009 12:18:43 +0200] rev 10110
test-help: improve test coverage
Adds a test for displaying the short list of commands with
the verbose option i.e. 'hg -v help shortlist'.
Extends test coverage of commands.help_ by 2 lines.
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 21 Dec 2009 20:30:37 +0100] rev 10109
bookmarks: move parse() and current() into property definitions
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 21 Dec 2009 15:17:28 +0900] rev 10108
bookmarks: refactor code responsible for updates of bookmarks
introduce _bookmarksupdate for common parts from commitctx and addchangegroup
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 21 Dec 2009 20:19:21 +0100] rev 10107
bookmarks: repo._bookmarkcurrent should be a propertycache
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 21 Dec 2009 15:23:03 +0900] rev 10106
bookmarks: write() can simply access repo._bookmarks
Nicolas Dumazet <nicdumz.commits@gmail.com> [Mon, 21 Dec 2009 13:55:56 +0900] rev 10105
bookmarks: turn repo._bookmarks into a propertycache
Sune Foldager <cryo@cyanite.org> [Mon, 21 Dec 2009 16:13:20 +0100] rev 10104
Merge with stable
Sune Foldager <cryo@cyanite.org> [Mon, 21 Dec 2009 16:12:43 +0100] rev 10103
hook: fix bug (reuse of variable) introduced in 872d49dd577a
For binary installs, the 'name' argument would be reused as a local variable,
destroying its original value. The patch fixes that, and also avoids copying
sys.path when it's not necessary.