Petr Kodl
6d8f8227f9
Improve error handling in osutil.c
...
1) In posix part set error when path is too long so instead of
SystemError: error returned without exception set
it will raise
ValueError: path too long
2) In Win32 part replace generic
PyErr_SetExcFromWindowsErrWithFilename
by
PyErr_SetFromWindowsErrWithFilename
The exception returned is WinError(based on OSError) and
some rudimentary errno translation is performed from Windows error range
to errno module friendly range so errors like ENOENT can be handled via symbolic
constant and consistently between Win32 and Posix.
2008-10-01 08:41:18 -04:00
Benoit Boissinot
6866fd146e
source
doesn't work for some /bin/sh, use .
instead
2008-09-29 12:12:53 +02:00
Benoit Boissinot
0d962b79e7
fix conflicting variables when no native osutil is available
...
thanks weijun for the bug report and patch, fix issue1309
2008-09-29 11:57:27 +02:00
Petr Kodl
09cc67de2c
osutil: implementation for Win32
...
Use information provided by FindFile... Win32 calls
to generate stat information without lstat call per file.
rwx bits in st_mode are ignored as they are not stored in Win32 fs
and Mercurial does not use them
Unicode path / path names over _MAX_PATH are intentionally not supported.
2008-09-14 09:57:33 -04:00
Patrick Mezard
c4a9b7abb7
convert: improve convert_source documentation
2008-09-29 09:30:36 +02:00
Patrick Mezard
4813e1621f
get-with-headers: fix stream modes under Windows
2008-09-28 20:40:38 +02:00
Marek Kubica
0f790a60a5
convert: add bzr source
2008-09-26 20:33:47 +02:00
Dirkjan Ochtman
2b0d513e2a
merge with crew-stable
2008-09-27 10:11:31 +02:00
Dirkjan Ochtman
aad25b6bfd
gitweb: correct tags page feed autodiscovery links
2008-09-26 16:27:03 +02:00
Dirkjan Ochtman
fcf19417f1
clone: honor -r even when pulling named branches
2008-09-24 13:10:09 +02:00
Martin Geisler
9eb8225664
i18n, churn: mark string for translation
2008-09-23 22:01:40 +02:00
Dirkjan Ochtman
ba6b67f951
merge with crew-stable
2008-09-24 13:50:29 +02:00
Sune Foldager
1465c20864
fetch: use dirstate branch instead of first parents
2008-09-24 13:22:11 +02:00
Benoit Boissinot
66c79ea6b0
merge with -stable
2008-09-22 14:47:21 +02:00
Benoit Boissinot
0d1cd8705f
Escape '%' when writing to hgrc (issue1199)
...
Fixes clone with paths containing '%'.
Patch provided by mjc.
2008-09-20 15:00:58 +02:00
Dennis Schoen
ed4bd4d0e6
tests: add test for notify extension as changegroup hook
2008-09-18 13:55:58 +02:00
Mads Kiilerich
b80093e190
tests: fix reported patch tool name in test-mq
...
Strip any path of the patch executable, which it might return on failure.
2008-09-18 13:45:36 +02:00
Mads Kiilerich
b0d9bb04f5
tests: fix readline escape characters in output for test-doctest.py
2008-09-18 13:48:41 +02:00
Patrick Mezard
9b11dbf5dd
Update coverage.py
...
There is no technical reason to update it except it contains all the patches
already done in mercurial plus other stuff. It will be easier to update and
maintain in the future.
2008-09-17 22:15:36 +02:00
Dirkjan Ochtman
0aa08a7ed8
merge with crew-stable
2008-09-17 11:34:37 +02:00
Dirkjan Ochtman
87abdc361c
tests: fix test-highlight for compatiblity with newer Pygments
2008-09-17 11:14:06 +02:00
Martin Geisler
c6e4e2012e
update: mention null revision in help text
2008-09-17 10:24:30 +02:00
Scott McCreary
501e6fe68f
allow Mercurial to compile on Haiku
2008-09-17 10:22:35 +02:00
Michael Sommerville
3ce4deef7c
hgk: Display branch name for each head (issue 740)
...
In the graphical view, each head is decorated with an additonal tag
containing the branch name, if that head is not on the default branch.
2008-09-15 23:39:11 +01:00
Matt Mackall
2d47031d0d
listdir: add support for aborting if a certain path is found
...
This lets us bail out early if we find '.hg', letting us skip sorting
and bisecting for it.
2008-09-13 10:46:47 -05:00
Benoit Boissinot
d6add1b5a8
forbid username with '\n' at the changelog level
...
It was already forbidden for ui.username() but no verification were
made for username passed through the commandline.
2008-09-13 17:46:09 +02:00
Matt Mackall
c0ccecefce
osutil: fix some braindamage
...
- entkind returns -1 on failure
- compile if AT_SYMLINK_NOFOLLOW is missing
- avoid fullpath overflow
2008-09-13 10:44:44 -05:00
Matt Mackall
7ce9a41a12
dirstate: improve performance for building _dirs
2008-09-12 19:57:07 -05:00
Matt Mackall
a1338aa911
osutil: major listdir cleanup
2008-09-12 15:11:02 -05:00
Dirkjan Ochtman
d372202ca2
hgweb: let the web graph cope with low revisions/new repositories (issue1293)
2008-09-12 16:15:01 +02:00
Benoit Boissinot
0833f4e74b
osutil: proper error checking and reporting
2008-09-10 22:37:07 +02:00
Benoit Boissinot
fdb31340ce
run-tests.py: fix the check for the hg installation with -jn (n > 1)
2008-09-10 13:52:33 +02:00
Benoit Boissinot
bb6f34eb86
inotify: add client code for long pathname handling
2008-09-07 15:10:11 +02:00
Benoit Boissinot
6600c99d5a
inotify: workaround ENAMETOOLONG by using symlinks
...
If we can't create the unix socket because the path is too long
we create the socket in a temporary directory and symlink it into
the repo.
Fix issue1208
2008-09-06 14:11:33 +02:00
Benoit Boissinot
5b0f8d909f
inotify: deactivate inotify status on failure
...
workaround issue1208, add test
fix traceback handling (socket.error is a singleton in this case)
2008-09-06 12:49:20 +02:00
Benoit Boissinot
9849809bc7
inotify: fix traceback when the server has been already started
2008-09-06 12:48:52 +02:00
Rocco Rutte
f70a5a0f4e
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
...
This makes it easier for clients/users to distinct between supported
but disabled and unsupported archive types.
2008-09-05 17:28:37 +02:00
Rocco Rutte
e3204e1e55
coal/paper: fix error page markup to show navigation again
2008-09-12 13:28:05 +02:00
Benoit Boissinot
9ceefedcef
merge with -stable
2008-09-10 23:20:04 +02:00
Benoit Boissinot
cdffbdce00
dirstate: use the right variable (f, not ff)
2008-09-10 22:54:28 +02:00
Benoit Boissinot
dd432a82af
osutil: proper error checking and reporting
2008-09-10 22:37:07 +02:00
Christian Ebert
09b34ab14b
hgcommand.vim: refer Vim7 users to vcscommand plugin
2008-09-10 09:41:42 -04:00
Benoit Boissinot
54526438a0
make test-mq-qdelete work reliably (issue1180)
...
if after a and b has been applied, their hash starts with c, then the test
would fail (because there would be a rev c which would be seen as "applied")
so probability of failure would be 2*1/16.
2008-09-10 17:55:49 +02:00
Jim Hague
788364de51
Add support for Bugzilla 3.0 series to bugzilla hook.
...
The only difference is 'fieldid' in table 'fielddefs' got renamed
to 'id' for 3.0.
2008-08-29 20:36:55 +01:00
Benoit Boissinot
1dcbb85da7
run-tests.py: fix the check for the hg installation with -jn (n > 1)
2008-09-10 13:52:33 +02:00
Benoit Boissinot
401371bd20
merge backout
2008-09-10 08:49:05 +02:00
Benoit Boissinot
f4db28e2cc
Backed out changeset 1aa58165fc81 (see issue916 for details)
2008-09-10 08:48:23 +02:00
Martin Geisler
63784c935a
i18n, record: improve use of translated docstring in prompts
...
The old code would confuse the user if the translator actually
translated the letters "Ynsfdaq?" in the prompt, since the user input
would be matched against the English string, despite the translation.
The new code fixes this, but the translator must be 100% consistent.
Also, the translation of single character strings is problematic if
they are used differently by different pieces of code.
2008-09-09 21:32:39 +02:00
Martin Geisler
090a14a77f
i18n: use gettext instead of _
...
Both gettext and _ trigger a translation at runtime, but _ can only be
used with a string argument since it also triggers string extraction.
2008-09-09 21:32:39 +02:00
Martin Geisler
d247b977fd
i18n: mark help strings for translation
...
The gettext function is just another name for the normal _ function
and it is used for translating docstrings when using _ would make
pygettext.py output a warning.
2008-09-09 21:32:39 +02:00