Commit Graph

4321 Commits

Author SHA1 Message Date
Patrick Mezard
5a74c065fc stdout raises EINVAL when flush() is called on a closed pipe under win32.
Maybe the exception should be caught and translated at raise location instead (sshserver.py).
2007-02-19 10:32:46 +01:00
Patrick Mezard
367b6626be localrepo: stream_in may raise ZeroDivisionError with nul float elapsed argument. 2007-02-19 10:29:05 +01:00
Patrick Mezard
c2f72d8974 streamclone: stream_out tried to decodefilename non-normalized paths 2007-02-19 09:59:37 +01:00
Thomas Arendsen Hein
a93551d740 Unified #! paths for python scripts and removed them for test modules. 2007-03-01 22:15:17 +01:00
Matt Mackall
4458a1780a merge: fix renaming of subdirectories under renamed directories 2007-02-27 16:20:06 -06:00
Christian Ebert
d0e9855977 test-notify: adapt to sed shipped with MacOS
MacOS X' sed does not have the \? repetition operator.
2007-02-17 09:54:44 +01:00
Alexis S. L. Carvalho
8cab83c8ec git binary patches: don't print the header for identical files 2007-02-17 09:55:00 -02:00
Alexis S. L. Carvalho
fe408bb673 git binary patches: use hashes to detect identical files 2007-02-17 09:54:59 -02:00
Alexis S. L. Carvalho
42cf1a555f add test for diffing identical binary files 2007-02-17 09:54:58 -02:00
tailgunner@smtp.ru
5474a24e48 Don't lie that "binary file has changed"
Without -a option to "hg diff", mdiff.unidiff reported that "Binary
file foo has changed" without even trying to compare things. Now it
computes MD5 of old and new files, compares them and makes the conclusion.
2007-02-17 09:54:56 -02:00
Alexis S. L. Carvalho
110602f186 hgweb: catch util.Abort raised by addchangegroup
Right now, if a pretxnchangegroup hook fails, we send some HTML
error message to the client and the transaction is not rolled back
(issue499).

Catching util.Abort allows us to send a decent message to the client
and for some reason makes the rollback complete.

This patch is not perfect since it doesn't fix the reason why the
transaction wasn't rolled back (maybe some circular references?).
Also, the transaction is aborted only after we've sent the response
back to the client and the "transaction aborted" message ends up in
the logs of the web server.
2007-02-16 05:10:43 -02:00
Alexis S. L. Carvalho
f03ddd16f8 notify: don't try to fix addresses if notify.domain is not set 2007-02-16 04:54:49 -02:00
Alexis S. L. Carvalho
90f1713401 mail.py: don't try to use TLS if python doesn't have SSL support
This should hide the traceback from issue501.
2007-02-16 04:54:47 -02:00
Alexis S. L. Carvalho
14c4429263 git patches: handle renames of binary files 2007-02-16 04:54:46 -02:00
Alexis S. L. Carvalho
f3a8f26178 hgweb/server.py: use hg.repository to create a repo object 2007-02-15 08:49:20 -02:00
Alexis S. L. Carvalho
86353c5094 qclone: don't call reposetup manually 2007-02-15 08:44:08 -02:00
Alexis S. L. Carvalho
de6a03262c extdiff: open files in binary mode
Problem noticed by Darrell Gallion.
2007-02-15 08:14:03 -02:00
Andrei Vermel
6c380c2c30 Make extdiff work at root directory 2007-02-15 12:51:43 +03:00
Alexis S. L. Carvalho
62a7370570 Fix util.shellquote on windows. 2007-02-15 05:38:00 -02:00
Jun Inoue
db15047102 Fix accessing the repo through a symlink. 2007-02-15 05:18:23 -02:00
Alexis S. L. Carvalho
5334342412 hgwebdir: try to get web.style and web.motd from the ui.config system
This finishes fixing issue253.  As a bonus, web.style and web.motd
settings from ~/.hgrc will be used for the hgwebdir index page.
2007-02-13 10:02:07 -02:00
Alexis S. L. Carvalho
b169322734 Pass a ui from create_server to hgwebdir and a repo from hgwebdir to hgweb
This allows repo pages to respect hg serve --webdir-conf <file> --style=gitweb
(part of issue253).

Since we're creating a ui object anyway, use it as the parentui of the ui
objects created for every repo entry.  This has the unintended side-effect
that --name=foo on the command line will set the name of all repos.

If one of the repos being served has a .hg/hgrc owned by a user that is not
trusted, hg will now print the "Not trusting file..." warning when reading
it.  This is consistent with the behaviour from a hg serve from inside the
repo.
2007-02-13 10:01:44 -02:00
Alexis S. L. Carvalho
77c91df790 hg serve: call setconfig on the parentui
It makes sense to do this on the "global" ui object, since command line
options should affect the whole process.

This should fix hg serve --style=gitweb inside a repo (part of issue253).
2007-02-13 10:00:17 -02:00
Sean Dague
3f956d46a5 Prevent type exception on concatenation if diffstat returns None.
This will most often occur if diffstat is not installed in the
target platform, though may also happen in other cases where
diffstat fails to execute.

Signed-off-by: Sean Dague <sean@dague.net>
2007-01-30 10:35:25 -05:00
Alexis S. L. Carvalho
9d682f1c81 Switch CGI stdout to binary on windows
Problem diagnosed by Andrei Vermel.
2007-02-13 06:50:00 -02:00
Andrei Vermel
d789a5b4fc Fix dirstate fail at drive root on Windows 2007-02-09 20:50:41 +03:00
Alexis S. L. Carvalho
06a58ad86b Try to pass repo.ui to reposetup hooks
The ui object we received in this function may belong to another repo,
which could be confusing from the hook point of view.  Trying to use
the ui object from the newly created repo should avoid this confusion.
2007-02-08 16:31:21 -02:00
Andrei Vermel
0483a4d2c4 Fix wrong module reference in copyfile exception 2007-02-06 00:09:36 +03:00
Alexis S. L. Carvalho
208d8d38e9 setup.py: reload __version__.py after writing it.
write_version loads __version__.py before writing it (see a48d939230f4),
so we have to explicitly reload it to use the correct version.

Problem diagnosed by Christian Ebert.
2007-02-06 15:55:20 -02:00
Alexis S. L. Carvalho
5357b68523 fix strip'ping the second parent of a merge 2007-02-06 15:54:58 -02:00
Alexis S. L. Carvalho
60b9229aaa install reposetup hook right after loading the extension 2007-02-06 15:43:01 -02:00
Alexis S. L. Carvalho
b2dff97617 Open bundle files in binary mode 2007-01-30 20:37:58 -02:00
Alexis S. L. Carvalho
9248b0bde4 filecommit: don't forget the local parent on a merge with a local rename 2007-01-30 19:09:08 -02:00
Alexis S. L. Carvalho
93c60f1213 Fallback to ascii if getpreferredencoding raises an exception
Fixes issue478.
2007-01-30 18:32:23 -02:00
Alexis S. L. Carvalho
a8f8cca050 unbundle: don't use urllib if it's a local file 2007-01-30 18:32:21 -02:00
Alexis S. L. Carvalho
5b836109d8 docopy: deal with globs on windows in a better way 2007-01-30 18:32:20 -02:00
Alexis S. L. Carvalho
29a5332aa9 Explicitly expand globs on Windows 2007-01-30 18:32:18 -02:00
Benoit Boissinot
20cb213c14 mtime can be -1 after a merge and cause tracebacks on win32.
Output "unset" instead.
2007-01-30 00:26:19 +01:00
Thomas Arendsen Hein
661a8e64e4 Adjust documentation for 506f21c68c1d (empty username to force specifying it) 2007-01-25 17:57:51 +01:00
Thomas Arendsen Hein
1be2af280f Abort on empty username so specifying a username can be forced.
This behaviour was introduced by d5601ef79d86 and broken by c608116532fe.
Added test for this.
2007-01-24 23:04:51 +01:00
Patrick Mezard
f73963b537 Copied files sources were not shown by status -C under Win32.
repo.dirstate.copied() takes a normalized paths while local paths were passed.
2007-01-14 19:10:35 +01:00
Alexis S. L. Carvalho
83a6730e68 add test for 8d53ef723a6c 2007-01-15 16:13:50 -02:00
Benoit Boissinot
a033481246 bundlerepo: it was meant to be revdiff() instead of chunk() 2007-01-15 17:56:20 +01:00
Christian Ebert
f1ac1bb856 patchbomb: fix timezone offset in message date header
Use mercurial.util instead of time to set and format dates.
2007-01-13 02:15:49 +01:00
Benoit Boissinot
7616bbdf28 fix for digest auth when using keepalive.py
The problem was with python > 2.3 which stores part of the
headers in unredirected_hdrs.
Furthermore, we simplify the code to use httplib directly.

fix issue473
2007-01-08 16:18:29 +01:00
Benoit Boissinot
a76c975e9d Subclass file with a __len__ method instead of setting Content-length
This is necessary for the next patch to work with python2.3
Refactor the subclassing of send()
2007-01-08 16:12:35 +01:00
Thomas Arendsen Hein
742fac2ea2 Handle exceptions in do_hgweb: Send "Internal Server Error", log traceback 2007-01-02 22:12:38 +01:00
Giorgos Keramidas
d80dabf492 Use printf(1) instead of using bash-specific shell code.
Submitted by:  Benoit Boissinot <bboissin@gmail.com>
2006-12-30 21:33:45 +02:00
Alexis S. L. Carvalho
86f6bc24c9 test-ssh: use printenv.py 2007-03-26 23:50:04 -03:00
Alexis S. L. Carvalho
103261031e test-static-http: use printenv.py 2007-03-26 23:50:03 -03:00