Commit Graph

83 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
61d51838df New config option: ui.report_untrusted (defaults to True) 2007-06-25 22:41:15 +02:00
Thomas Arendsen Hein
f4d1e9e360 Fixed sorting inside nearly sorted sections in hgrc.5 2007-06-24 11:17:49 +02:00
Markus F.X.J. Oberhumer
974b7c5201 Add option "hidden" to hgwebdir.
TODO: should this option be renamed to 'hide_from_index' or
maybe to 'index_ignore' (like Apache's mod_autoindex) ?
2007-06-25 14:46:20 +02:00
OHASHI Hideya
83f32e7ff9 Enable to select encoding in hgrc web section
This patch provides character encoding setting in each repository. After this
patch, You can use multi encoding repositories with one mercurial server.
2007-06-13 18:18:06 +09:00
Thomas Arendsen Hein
f1c2183cb0 Backed out changeset 6e4b2043f10ea50b3eeb0ceb3e8776032fb8d92e
Only printenv was changed, not the actual execution of hooks.
And not setting an empty value might cause problems on platforms
which can't always remove variables from the environment.
2007-06-21 10:00:59 +02:00
Thomas Arendsen Hein
4df6409ef2 Adjust note about variables not being set for empty values. 2007-06-21 09:45:33 +02:00
Patrick Mezard
10eeab335d Merge with crew-stable 2007-06-20 22:05:43 +02:00
Patrick Mezard
cb7eb3ca92 Document empty environment variables not being passed to hooks under Windows. 2007-06-20 21:35:41 +02:00
Thomas Arendsen Hein
4d29c6dc8e Updated copyright notices and add "and others" to "hg version" 2007-06-19 08:51:34 +02:00
Matt Mackall
c61bc27ccc dispatch: add generic pre- and post-command hooks 2007-06-18 17:49:56 -05:00
Alexis S. L. Carvalho
af3964b248 Add ui.slash hgrc setting
This will make most commands print paths using "/", regardless of
the value of os.sep.
2007-06-08 23:49:12 -03:00
Patrick Mezard
3e2c29954d Add ui.patch option.
ui.patch overrides the default patch/gpatch command and options.
2007-05-12 21:09:31 +02:00
Matt Mackall
8c444e1f45 Allow disabling store format to work with absurdly long filenames 2007-03-08 16:12:52 -06:00
Alexis S. L. Carvalho
b95f1add5a hgweb: allow static files to be served directly by the HTTP server 2007-02-15 08:51:32 -02:00
Thomas Arendsen Hein
661a8e64e4 Adjust documentation for 506f21c68c1d (empty username to force specifying it) 2007-01-25 17:57:51 +01:00
Benoit Boissinot
9fe271946b add [diff] section to hgrc documentation 2006-12-29 04:22:31 +01: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
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
Thomas Arendsen Hein
161d77a963 Corrected documentation for return value of python hooks. 2006-11-05 21:57:52 +01:00
Alexis S. L. Carvalho
cb59e4de82 save settings from untrusted config files in a separate configparser
This untrusted configparser is a superset of the trusted configparser,
so that interpolation still works.

Also add an "untrusted" argument to ui.config* to allow querying
ui.ucdata.

With --debug, we print a warning when we read an untrusted config
file, and when we try to access a trusted setting that has one value
in the trusted configparser and another in the untrusted configparser.
2006-10-26 19:25:45 +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
Thomas Arendsen Hein
37655ca869 Commit username: Better error message, abort on empty name, fix documentation. 2006-10-23 14:56:51 +02:00
Benoit Boissinot
dc9483558a makes username mandatory 2006-10-18 22:24:03 +02:00
Matt Mackall
d031f12c1d Merge with backout 2006-09-15 16:01:16 -05:00
Matt Mackall
277fde1fea Back out trusted hgrc change for now
Backed out changeset f077d29b114d4
2006-09-15 16:00:16 -05:00
Alexis S. L. Carvalho
fa133e9e4f 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.
2006-08-22 20:45:03 -03:00
Bryan O'Sullivan
24286794a7 Add ui.strict config item.
This turns off command matching by unambiguous prefix, and is a good
thing if you want to write future-proof scripts.

This fixes issue 314.
2006-08-21 21:59:29 -07:00
Thomas Arendsen Hein
8d8bec1f32 Adjusted documentation for hgrc's "[smtp] host" for change in e579f762cc2a. 2006-08-11 09:11:54 +02:00
Christian Ebert
9cf960e0c5 email: reflect that recipients are specified as comma-separated list 2006-07-27 13:18:21 +02:00
Christian Ebert
17dd085b28 added documentation for to, cc, and bcc addressing 2006-07-26 14:42:17 +02:00
Christian Ebert
2be3c1149c fix reference to "smtp" section
documentation for "method" has reference to "mail" section.
"mail" section doesn't exist, changed to "smtp".
2006-07-26 15:21:20 +02:00
Vadim Gelfer
0778999161 hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks
all repository classes now have url() method that returns url of repo.
2006-07-25 13:50:32 -07:00
Frank Kingswood
b817bf8839 hgweb: Configurable zebra stripes
With this change, you can set
    [web]
    stripes=3
to get stripes every three lines (a-la fanfold paper), instead of every
line on source and directory listings. The default behaviour is stripes=1
which generates output similar to current, and you can also turn stripes
off by setting it to 0.
2006-07-24 23:06:05 -07:00
Vadim Gelfer
a7bbf7d88f rename stream hgrc option to compressed. 2006-07-16 10:04:16 -07:00
Vadim Gelfer
f7b6882acb clone: disable stream support on server side by default.
enable in hgrc like this:
[server]
stream=True
2006-07-15 16:06:35 -07:00
Valentino Volonghi aka dialtone
1caa939c7d adding local_hostname option to smtp configuration 2006-07-09 14:12:19 +02:00
TK Soh
91ac92a305 add document on command defaults 2006-09-02 20:24:53 +08:00
Vadim Gelfer
9420a748d4 push over http: server side authorization support.
new hgrc entries allow_push, deny_push, push_ssl control push over http.

allow_push list controls push.  if empty or not set, no user can push.
if "*", any user (incl. unauthenticated user) can push.  if list of user
names, only authenticated users in list can push.

deny_push list examined before allow_push.  if "*", no user can push.
if list of user names, no unauthenticated user can push, and no users
in list can push.

push_ssl requires https connection for push.  default is true, so password
sniffing can not be done.
2006-06-20 15:23:01 -07:00
Daniel Santa Cruz ext:(%22)
b8d8685fd9 Add web.contact to the hgrc documentation. 2006-06-14 18:27:30 +00:00
Markus F.X.J. Oberhumer
54c6cdc1d8 Expand '~' in path to extensions. 2006-06-01 15:53:43 -07:00
TK Soh
633f958ebe hgweb: add allow_archive support to [web] section of hgrc 2006-06-01 10:02:24 -05:00
FUJIWARA Katsunori
421983dd06 If HOME is defined on Windows, Mercurial uses it. Document this. 2006-05-18 22:52:19 -07:00
Vadim Gelfer
de0a3b422b allow to send email using sendmail.
default is still smtp.
update hgrc doc with sendmail info.
2006-05-15 10:25:17 -07:00
Vadim Gelfer
aa621a0ae1 remove non-prefixed environment variables from hooks. 2006-05-15 09:13:00 -07:00
Daniel
0520dde5e6 Add more specific documentation about defaults for the [paths] section
of the hgrc(5) document.
2006-05-13 20:41:53 +02:00
Vadim Gelfer
1f1118a083 hooks: add preupdate and update hooks.
preupdate run before working dir updated. can prevent update.
update run after working dir updated.
2006-05-11 10:14:48 -07:00
Vadim Gelfer
3b1041b988 document [extensions] in doc/hgrc.5.txt. 2006-05-04 22:38:14 -07:00
Vadim Gelfer
b2130fb2d5 document hgignore syntax in new file doc/hgignore.5.txt.
fix issue 162.
2006-05-04 22:20:02 -07:00
Vadim Gelfer
f906ed16e7 move mail sending code into core, so extensions can share it.
document hgrc settings used.
2006-05-04 12:23:01 -07:00
Vadim Gelfer
901f2c1543 define standard name for base url to use when printing hgweb urls.
useful for bugzilla integration, email notifications, other stuffs.
2006-05-04 11:32:00 -07:00