Alexis S. L. Carvalho
e9dc052e2a
allow values that aren't strings in util.configparser
2007-02-09 03:48:26 -02:00
Matt Mackall
28f682beac
Merge with stable
2007-02-06 16:12:22 -06:00
Andrei Vermel
0483a4d2c4
Fix wrong module reference in copyfile exception
2007-02-06 00:09:36 +03:00
Alexis S. L. Carvalho
fff454d591
Merge with crew-stable
2007-01-30 19:36:56 -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
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
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
Matt Mackall
2e27ddd82b
symlinks: use is_link wherever is_exec is used
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
Alexis S. L. Carvalho
d725a42fd8
merge with crew-stable
2006-12-16 02:51:16 -02:00
Alexis S. L. Carvalho
88251bd81b
util.system: fix quoting on windows
2006-12-16 02:38:18 -02:00
Matt Mackall
296d6a7cb8
Simplify i18n imports
2006-12-14 20:25:19 -06:00
Matt Mackall
f17a4e1934
Replace demandload with new demandimport
2006-12-13 13:27:09 -06:00
Benoit Boissinot
def42107f3
fix reserved char on windows, '[]+' are allowed
2006-12-10 21:53:01 +01:00
Benoit Boissinot
e5024feef0
fix errors spotted by pychecker
2006-12-10 19:41:57 +01:00
Matt Mackall
6d9bbc8702
Merge Benoit's .hg/store support
2006-12-10 02:11:02 -06:00
Matt Mackall
03f3b2efc4
make transcoding more robust
...
default to ASCII
abort if unknown encoding
wrap abort strings with _
add test
2006-12-09 12:46:01 -06:00
Alexis S. L. Carvalho
edf9fef62b
Allow the user to specify the fallback encoding for the changelog
...
Example: use EUC-JP instead of ISO-8859-1:
[ui]
fallbackencoding = EUC-JP
2006-12-08 22:01:05 -02:00
Matt Mackall
d589171997
Add --date support to log
...
Add --date opt
Filter log with matchdate
Fix "-{days}" match format
2006-12-06 15:29:17 -06:00
Matt Mackall
d7141083eb
Add date matching support
...
Add extended date formats (eg "Dec", "2006")
Add a couple missing basic date formats
Improve default date element scheme to parsedate
Add matchdate function to match a date spec
Add -e switch and range matching to debugdate
2006-12-06 15:11:44 -06:00
Matt Mackall
dcf070dde9
parsedate: add UTC and GMT timezones
2006-12-06 13:13:42 -06:00
Matt Mackall
63c91a1801
improve date parsing for numerous new date formats
...
Add lots of new date formats
Formats without year, month, or day default to current
Strip leading and trailing whitespace
2006-12-06 13:13:31 -06:00
Matt Mackall
fb391fcb13
parsedate: allow '' for epoch
2006-12-06 13:13:27 -06:00
Matt Mackall
9630fc215f
parsedate: use Abort rather than ValueError
2006-12-06 13:13:26 -06:00
Benoit Boissinot
e005ffc8c4
switch to the .hg/store layout, fix the tests
2006-12-01 13:34:09 +01:00
Benoit Boissinot
31a06c4e2b
create the encode and decode functions for the store
2006-12-10 00:07:02 +01:00
Matt Mackall
2356030286
imported patch folding
2006-12-04 17:10:29 -06:00
Matt Mackall
3982f645e8
Add functions for transcoding and manipulating multibyte strings
2006-12-03 16:16:33 -06:00
Matt Mackall
8b091a9c1d
Add encoding detection
2006-12-03 16:16:33 -06:00
Thomas Arendsen Hein
9b62ceebc7
Move ellipsis code to util.ellipsis() and improve maxlength handling.
2006-12-02 22:35:17 +01:00
Benoit Boissinot
3bad25e752
only print a warning when no username is specified
...
- revert most of 8b55c0ba
- display the username during interactive commit
2006-11-28 21:16:05 +01:00
Alexis S. L. Carvalho
6e218edeb5
Avoid looking up usernames if the current user owns the .hgrc file
...
Converting uids into usernames may be somewhat expensive when NIS
or LDAP is involved.
2006-11-18 23:51:14 -02:00
Thomas Arendsen Hein
411d64ce3e
white space and line break cleanups
2006-11-17 08:06:54 +01:00
Alexis S. L. Carvalho
2a74758338
fix util.pathto
...
All users of this function pass a local path (which uses os.sep) as the
first argument and a "/"-separated path as the second argument.
2006-11-15 18:56:47 -02:00
Matt Mackall
0cc86247a3
util: add copyfile function
2006-11-13 13:26:57 -06:00
Thomas Arendsen Hein
11cdc6b21b
Merge with upstream
2006-10-27 23:09:46 +02:00
Matt Mackall
e803b50ef2
Make util.unique return a list
2006-10-27 14:06:32 -05:00
Matt Mackall
24c7fbb0f1
shortname: truncate at '.' too
2006-10-27 11:30:20 -05:00
Thomas Arendsen Hein
a0477d89a5
New UnexpectedOutput exception to catch server errors in localrepo.stream_in
...
If the unexpected is a string, the empty string will be mentioned, and long
strings are cut to at most 400 chars.
2006-10-27 18:17:12 +02:00
Alexis S. L. Carvalho
c44cea1532
Only read .hg/hgrc files from trusted users/groups
...
The list of trusted users and groups is specified in the [trusted]
section of a hgrc; the current user is always trusted; "*" can be
used to trust all users/groups.
Global hgrc files are always read.
On Windows (and other systems that don't have the pwd and grp modules),
all .hg/hgrc files are read.
This is essentially the same patch that was previously applied as
revision f077d29b114d.
2006-10-26 19:25:44 +02:00
Benoit Boissinot
dc9483558a
makes username mandatory
2006-10-18 22:24:03 +02:00
Alexis S. L. Carvalho
a85d162373
Use a case-sensitive version of SafeConfigParser everywhere
...
This change has the potential to break existing setups, but the current
behaviour (the keys in configuration files are always lower-cased) can
bite us in a few places:
- no way to use a Command in [defaults]
- hgext.Extension doesn't work in [extensions]
- you can't use an Upper/case/PATH in the [paths] section of hgweb.config
- you can't (easily) protect paths with upper-case letters with the
acl extension
- you can't specify a /Path/TO/a/rEPO in the [reposubs] section for
the notify extension
2006-10-16 15:38:53 -03:00
Jose M. Prieto
7670d11c8a
Add documentation about the date formats allowed in the command line
2006-10-03 12:33:22 +02:00