Patrick Mezard <pmezard@gmail.com> [Thu, 24 Dec 2009 00:01:13 +0100] rev 10136
Merge with crew-stable
Greg Onufer <gonufer@jazzhaiku.com> [Wed, 09 Dec 2009 16:56:00 -0800] rev 10135
patch: better handling of sequence of offset patch hunks (
issue1941)
The built-in patch implementation applied the hunks to the wrong lines of the
file if the file in the repo has been modified to skew the patch line numbers
and the file contains repetitive sequences of lines.
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 23:28:53 +0100] rev 10134
Makefile: added instructions on how to override PREFIX
Martin Geisler <mg@lazybytes.net> [Wed, 23 Dec 2009 20:34:09 +0100] rev 10133
Merge with stable
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.
Martin Geisler <mg@lazybytes.net> [Sun, 20 Dec 2009 17:18:04 +0100] rev 10102
patch: implement patch.eol=auto mode
EOLs in patched files are restored to their original value after
patching. We use the first EOL found in the file, files with
inconsistent EOLs will thus be normalized during this process.
Martin Geisler <mg@lazybytes.net> [Sun, 20 Dec 2009 17:18:02 +0100] rev 10101
patch: propagate eolmode down to patchfile
The old code mapped the value of eolmode ('strict', 'crlf' or 'lf') to
eol (None, '\r\n' or '\n') at the entry point in internalpatch. The
value of eol was then used directly as the desired EOL in patchfile.
We now delay the mapping and let patchfile do it instead. This allows
for more complicated behavior where it does not make sense to map
eolmode directly to the target EOLs.
Brendan Cully <brendan@kublai.com> [Sat, 19 Dec 2009 22:56:01 -0800] rev 10100
Merge with stable
Brendan Cully <brendan@kublai.com> [Sat, 19 Dec 2009 22:55:33 -0800] rev 10099
share: use defaultdest to compute unspecified destination
This harmonizes with clone, and avoids creating a .hg in the current directory if
the source ends with a /
Martin Geisler <mg@lazybytes.net> [Sat, 19 Dec 2009 13:10:46 +0100] rev 10098
Merge with stable
Greg Ward <greg-hg@gerg.ca> [Fri, 18 Dec 2009 15:05:42 -0500] rev 10097
glog: fix "incompatible option" error message.
Options like 'only_branch' should be presented to the user as
'--only-branch'.
Matt Mackall <mpm@selenic.com> [Fri, 18 Dec 2009 14:27:30 -0600] rev 10096
Merge with crew
Frank Kingswood <frank@kingswood-consulting.co.uk> [Tue, 15 Dec 2009 10:37:23 +0000] rev 10095
convert: implement two hooks in builtin cvsps
Matt Mackall <mpm@selenic.com> [Wed, 16 Dec 2009 17:39:42 -0600] rev 10094
Merge with crew
Martin Geisler <mg@lazybytes.net> [Thu, 17 Dec 2009 00:32:26 +0100] rev 10093
Merge with stable
Mads Kiilerich <mads@kiilerich.com> [Wed, 16 Dec 2009 23:59:50 +0100] rev 10092
doc/Makefile: Fix rst2html detection
Displaying the output from the failing call to "which" didn't prevent
make from doing stupid things later. We now only search for "rst2html"
and fallback to "rst2html.py". If neither name is found, make will
eventually abort when we try to use $(RST2HTML).
Nicolas Dumazet <nicdumz.commits@gmail.com> [Fri, 11 Dec 2009 16:17:39 +0900] rev 10091
inotify: completely ignore events on the repository root
They can only be events on the top directory object. Those events are
meaningless for us: permission changes, repository-wide moves...
And they break the assertion that all events happen in repo/*.
Just ignore them.
Fixes one of the failures of run-test.py --inotify test-permissions
Nicolas Dumazet <nicdumz.commits@gmail.com> [Fri, 11 Dec 2009 15:58:09 +0900] rev 10090
inotify: do not rely on stat(.hg/dirstate) to invalidate our dirstate
stat() is not reliable when several events happen quickly. Which means
that if two hg actions occur in the same second, stat() result will not
reflect the second change. And only _one_ invalidate() call was done.
Also ignore the events that occur when wlock is held, since wlock release
will trigger a full rescan anyway.
Fixes 17 run-tests.py --inotify tests.
Nicolas Dumazet <nicdumz.commits@gmail.com> [Fri, 27 Nov 2009 09:23:10 +0900] rev 10089
inotify: follow new files if they are regular or a symlink.
Fixes run-tests.py --inotify symlink-basic
Mads Kiilerich <mads@kiilerich.com> [Wed, 16 Dec 2009 12:09:25 +0100] rev 10088
run-tests.py: Show paths to failing tests, .err and .out
I think this is very convenient when investigating and fixing test failures,
but perhaps it must be tweaked further to show paths if and only if
it is appropriate.
Matt Mackall <mpm@selenic.com> [Wed, 16 Dec 2009 16:46:12 -0600] rev 10087
Merge with stable
Matt Mackall <mpm@selenic.com> [Wed, 16 Dec 2009 16:42:58 -0600] rev 10086
convert: make hg sink cleanup safer
Martin Geisler <mg@lazybytes.net> [Wed, 16 Dec 2009 22:58:57 +0100] rev 10085
Merge with stable
Nicolas Dumazet <nicdumz.commits@gmail.com> [Fri, 11 Dec 2009 15:25:33 +0900] rev 10084
graphlog: fix output when both a limit and a path are provided
Limit was interpreted as absolute, from the topmost revision, without
counting the number of revisions matching a given file.
Which caused "glog -lN file" to show sometimes less than N csets if
the file was not modified in all of the N previous csets.
glog will now match the behavior of log.
Patrick Mezard <pmezard@gmail.com> [Wed, 16 Dec 2009 22:18:15 +0100] rev 10083
mercurial.iss: update locale location
Mads Kiilerich <mads@kiilerich.com> [Wed, 16 Dec 2009 12:10:21 +0100] rev 10082
test-share: Solaris sed can't handle never-ending lines
Mads Kiilerich <mads@kiilerich.com> [Wed, 16 Dec 2009 12:10:21 +0100] rev 10081
test-rollback: Ignore hook exit code
Failing hooks returned 255 on Solaris
Patrick Mezard <pmezard@gmail.com> [Wed, 16 Dec 2009 13:19:42 +0100] rev 10080
Merge with crew-stable
Mads Kiilerich <mads@kiilerich.com> [Wed, 16 Dec 2009 12:10:21 +0100] rev 10079
test-hook: Don't use extended regular expressions with grep
Using egrep fixes failure on Solaris
Brendan Cully <brendan@kublai.com> [Tue, 15 Dec 2009 12:33:04 -0800] rev 10078
hgweb: Make get_mtime use repository to find store path.
It was calculating it directly, which is redundant and caused
it to break with shared repositories.
Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> [Sun, 13 Dec 2009 18:29:16 +0100] rev 10077
make ui.interactive() return false in case stdin lacks isatty