Alexis S. L. Carvalho
83ec2b9f11
commit: catch IOError
...
filecommit can still raise IOError if we're on a filesystem without
support for symlinks.
2007-01-30 21:11:10 -02:00
Alexis S. L. Carvalho
fff454d591
Merge with crew-stable
2007-01-30 19:36:56 -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
Michael Gebetsroither
ca10271bf3
hgwebdir: class hgwebdir should also accept a configparser instance
2007-01-30 22:07:22 +01: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
f599c21b8e
merge with stable
2007-01-24 23:07:09 +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
Alexis S. L. Carvalho
678568081f
Don't use ints in HTTP headers
2007-01-18 22:16:26 -02:00
Benoit Boissinot
4af82ec145
merge with -stable
2007-01-15 18:23:21 +01:00
Benoit Boissinot
a033481246
bundlerepo: it was meant to be revdiff() instead of chunk()
2007-01-15 17:56:20 +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
Patrick Mezard
784a42ef92
Flush stderr after write.
...
stderr can be buffered under win32 when redirected to a file,
including stdout.
2007-01-10 20:35:27 +01:00
Thomas Arendsen Hein
109316bf14
Merge branchname changes in localrepo.commit.
2007-01-11 23:13:32 +01:00
Thomas Arendsen Hein
3981689794
Use local encoding for "HG: branch" line in commit editor.
2007-01-11 23:12:21 +01:00
Simon 'corecode' Schubert
ffdf5f19dd
Add branch name to editor text.
2007-01-11 19:47:51 +01:00
Simon 'corecode' Schubert
0d6daa7c2a
When committing, record the changeset in the branchcache.
2007-01-11 19:33:34 +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
Alexis S. L. Carvalho
5f9eb6b9d4
Allow adding symlinks that don't point to files
2007-01-05 00:01:53 -02:00
Alexis S. L. Carvalho
4f27c0fe1c
catch AttributeError in util.checklink
...
There's no symlink function in the os module on windows.
Fixes issue468
2007-01-05 00:01:51 -02:00
Thomas Arendsen Hein
46055c07ca
sync with -stable
2007-01-02 22:40:52 +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
Matt Mackall
de434078f7
symlinks: minimal support for symlinks in merge/update
...
This will get angry, confused, and sad if you try to merge a symlink
with a regular file.
2006-12-29 20:04:31 -06:00
Matt Mackall
9a533e02cb
symlinks: add flags param to wwrite
...
Now wwrite can set symlink and exec for files
2006-12-29 20:04:31 -06:00
Matt Mackall
8ed93098b6
replace filehandle version of wwrite with wwritedata
2006-12-29 20:04:31 -06:00
Matt Mackall
5c878f727f
unify encode/decode filter routines
2006-12-29 20:04:31 -06:00
Matt Mackall
dae088ccfd
symlinks: add _link checking function
2006-12-29 20:04:31 -06:00
Matt Mackall
2e27ddd82b
symlinks: use is_link wherever is_exec is used
2006-12-29 20:04:31 -06:00
Matt Mackall
770d679638
symlinks: don't complain about symlinks
2006-12-29 20:04:31 -06:00
Matt Mackall
1dc3ac012f
symlinks: add a linkfunc
2006-12-29 20:04:31 -06:00
Matt Mackall
5a767e44a9
symlinks: add basic symlink functions to util.py
2006-12-29 20:04:31 -06:00
Matt Mackall
4b1ae5ef0a
symlinks: check whether a filesystem supports symlinks
2006-12-29 20:04:31 -06:00
Matt Mackall
30b8c51a84
exec: remove last flag from is_exec
2006-12-29 20:04:31 -06:00
Matt Mackall
b875ad6c04
exec: add execfunc to simplify exec flag support on non-exec filesystems
2006-12-29 20:04:30 -06:00
Matt Mackall
1ee7fd016e
pull umask-checking up
2006-12-29 20:04:30 -06:00
Matt Mackall
a76da2edbe
exec: checkexec checks whether filesystem supports exec flags
2006-12-29 20:04:30 -06:00
Benoit Boissinot
9b95329263
various doc fixes
...
- update can no longer be used to merge
- short summary start with lowercase
- add merge to short help list
- fix tests
2006-12-29 06:37:43 +01:00
Benoit Boissinot
e12e825086
catch socket.error
...
fix issue394
2006-12-29 06:08:46 +01:00
Benoit Boissinot
0a972b6964
fix handling of multiple Content-type headers
...
This can happen if an error happens while sending
application/mercurial-0.1 content. The error page will
be sent resulting (for at least lighttpd) in the following
headers:
Content-type: application/mercurial-0.1
Content-type: text/html
which result in req.proto = 'application/mercurial-0.1, text/html'
fix issue344
2006-12-29 05:27:48 +01:00
Benoit Boissinot
8e594b6a32
inst.reason isn't alway in the form (errno, strerror)
...
urllib2.urlopen("foobar://foo") is an example
where inst.reason is a string
fix issue383
2006-12-28 01:14:12 +01:00
Benoit Boissinot
4247929c84
fix hg help <ext> for extension that do not define any command
...
solve issue462
2006-12-26 21:59:01 +01:00
Thomas Arendsen Hein
28f17c0cc7
Improved error message for extensions overriding commands (with test):
...
- Old text "module foo overrides bar" was misread as overriding module bar.
- Only print a single warning line per extension instead of one for each
command.
2006-12-26 15:33:50 +01:00
Benoit Boissinot
e0f69e934d
hgweb: fix unused import
2006-12-26 03:17:34 +01:00
Benoit Boissinot
49c4016ea6
hgweb: use contexts, fix coding style
2006-12-26 03:16:54 +01:00
Benoit Boissinot
b9f841c38f
commands.py: use contexts in various places (debug*state, revert)
2006-12-26 03:13:57 +01:00
Benoit Boissinot
2f422472c6
cmdutil.py: use contexts in findrenames
2006-12-26 03:12:51 +01:00