Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 11:01:31 -0500] rev 6268
merge: notice uncommited copies (
issue1000)
As mentioned in msg5349 in
issue988, "hg update" doesn't take into account
uncommitted copies. To reproduce:
----------------
hg init repo
cd repo
touch foo
hg ci -Am 'add foo'
echo >> foo
hg ci -m 'change foo'
hg up -C 0
hg mv foo bar
HGMERGE=false thg --debug -y update
--------------------------
A similar problem happens with hg merge --force.
I'm attaching a possible patch.
Eric Hopper <hopper@omnifarious.org> [Sun, 02 Mar 2008 08:51:02 -0800] rev 6267
Check for patches repo with os.path.isdir not os.path.exists
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 21:57:46 -0300] rev 6266
hook.py: fix redirections introduced by
323b9c55b328
The only non-obvious part is the use of sys.{__stderr__,__stdout__},
which is needed because sshserver overrides sys.stdout.
This makes a test that I added back in revision
7939c71f3132 ineffective.
Jesse Glick <jesse.glick@sun.com> [Mon, 25 Feb 2008 09:55:57 -0500] rev 6265
Issue937: error messages from hooks not sent over HTTP.
Turns out that stderr - where ui.warn would send messages - was not
being proxied over the HTTP connection. stdout was, and it seems you
need both. (The streams are interleaved for readability.)
Tested on Ubuntu 7.10 with lighttpd on hgweb.cgi with HTTP Basic auth,
no SSL, using a changeset failing win32text.forbidcrlf.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 20:01:50 -0300] rev 6264
revlog.py: remove extra close()
atomictempfile.rename() already calls close().
Thomas Arendsen Hein <thomas@intevation.de> [Fri, 14 Mar 2008 23:51:58 +0100] rev 6263
adjust test-http output to non-default HGPORT, e.g. with run-tests.py -j
Stephen Deasey <sdeasey@gmail.com> [Mon, 10 Mar 2008 19:25:34 +0000] rev 6262
hgweb: clarify which address and port can/cannot be bound at startup (bug 769)
The error message at startup when the address/port could not be bound
was confusing:
hg serve
abort: cannot start server: Address already in use
Be more explicit:
$ hg serve -a localhost
abort: cannot start server at 'localhost:8000': Address already in use
Also be more explicit on success, showing hostname and ip address/port:
$ hg -v serve -a localhost -p 80
listening at http://localhost/ (127.0.0.1:80)
We are careful to handle a missconfigured machine whose hostname does not
resolve, falling back to the address given at the command line.
Remove a dead-code error message.
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Fri, 14 Mar 2008 22:12:50 +0100] rev 6261
revlog: make sure the files are closed after an exception happens
This prevents a corruption when the writes happen after the truncate
initiated by the transaction rollback.
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Fri, 14 Mar 2008 21:36:09 +0100] rev 6260
merge with crew
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Fri, 14 Mar 2008 21:35:49 +0100] rev 6259
make sure not to reuse an existing append-file from a previous failed pull
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 10:32:19 -0300] rev 6258
Fix
issue995 (copy --after and symlinks pointing to a directory)
I haven't looked at other places that call os.path.isdir to make
sure they're OK.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6257
dirstate: ignore mode changes if the fs does not supports the exec bit
This can make a difference when e.g. the repo is exported through NFS
(which support exec bits) and CIFS (which does not).
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6256
merge: require --force when there are deleted files
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6255
add a test for
a375ffc2aa1b
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6254
localrepo.commit: normalize commit message even for rawcommit.
This normalization consists of:
- stripping trailing whitespace
- always using "\n" as the line separator
I think the main reason rawcommit was skipping this normalization was
an attempt to preserve hashes during an hg->hg conversion.
While this is a nice goal, it's not particularly interesting in
practice. Since SHA-1 is so strong, the only safe way to do it is to
have absolutely identical revisions. But:
- if the original revision was created with a recent version of hg,
the commit message will be the same, with or without that
normalization
- if it was created with an ancient version of hg that didn't do any
normalization, even if the commit message is identical, the file list
in the changelog is likely to be different (e.g. no removed files),
and there were some old issues with e.g. extra file merging, which
will end up changing the hash anyway
- in any case, if one *really* has to preserve hashes, it's easier
(and faster) to fake a partial conversion using something like:
hg clone -U -r rev orig-repo new-repo
hg -R new-repo log --template '#node# #node#\n' > new-repo/.hg/shamap
Additionally, we've had some reports of problems arising from this lack
of normalization - e.g.
issue871, and a user that was wondering why
hg export/hg import was not preserving hashes when there was nothing
unusual going on (it was just import doing the normalization that had
been skipped).
This also means that it's even more unlikely to get identical revisions
when going $VCS->hg->$VCS.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6253
debugancestor: use repo.lookup when no revlog was specified
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 09:56:58 -0300] rev 6252
update output of test-hgweb
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 14 Mar 2008 01:45:17 -0300] rev 6251
setup.py: use a simplified custom version of CCompiler.has_function
The original one doesn't remove its temporary files and even creates
a temporary file in the CWD.
Florent Guillaume <fg@nuxeo.com> [Thu, 13 Mar 2008 23:45:36 +0100] rev 6250
gitweb: show branches in most of the templates
Florent Guillaume <fg@nuxeo.com> [Thu, 13 Mar 2008 23:45:35 +0100] rev 6249
hgweb_mod: add branch helper functions to use in templates
Bryan O'Sullivan <bos@serpentine.com> [Thu, 13 Mar 2008 19:53:02 -0700] rev 6248
Automated merge with http://hg.intevation.org/mercurial/crew
Christian Ebert <blacktrash@gmx.net> [Thu, 13 Mar 2008 10:42:46 +0100] rev 6247
win32text: use util.binary to detect \0
Thomas Arendsen Hein <thomas@intevation.de> [Fri, 14 Mar 2008 01:39:15 +0100] rev 6246
adjust test-fetch output to non-default HGPORT, e.g. with run-tests.py -j
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Thu, 13 Mar 2008 19:50:03 -0300] rev 6245
setup.py: skip inotify if there's no inotify_add_watch
Debian Etch doesn't include a sys/inotify.h header, which makes it
impossible to compile _inotify.c, making hg uninstallable.
The cc.has_function() method is implemented by trying to compile a
simple C program. Since there's no redirection involved all error
messages are sent to the terminal. This is not particularly pretty
but at least it allows the installation to complete.
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Thu, 13 Mar 2008 17:39:30 +0100] rev 6244
run-tests.py: add a summary of failed tests at the end
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Thu, 13 Mar 2008 15:40:41 +0100] rev 6243
fix incorrect date when committing a tag
regression introduced by
989467e8e3a9
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Wed, 12 Mar 2008 15:44:08 -0700] rev 6242
merge: fix handling of deleted files
Bryan O'Sullivan <bos@serpentine.com> [Wed, 12 Mar 2008 15:33:43 -0700] rev 6241
setup.py: os.uname is not available on Windows
Bryan O'Sullivan <bos@serpentine.com> [Wed, 12 Mar 2008 15:31:10 -0700] rev 6240
Automated merge with http://hg.intevation.org/mercurial/crew
Bryan O'Sullivan <bos@serpentine.com> [Wed, 12 Mar 2008 15:30:11 -0700] rev 6239
Add inotify extension
Patrick Mezard <pmezard@gmail.com> [Wed, 12 Mar 2008 23:21:01 +0100] rev 6238
convert: rename MAPFILE into REVMAP to disambiguate with filemap
Ralf Schmitt <schmir@gmail.com> [Wed, 12 Mar 2008 21:59:22 +0100] rev 6237
Make mercurial easy installable