Commit Graph

34065 Commits

Author SHA1 Message Date
Gregory Szorc
fde2177334 sparse: require [section] in sparse config files (BC)
Previously, [include] was implicit and pattern lines before a
[section] were added to includes.

Because the format may change in the future and explicit behavior,
well, more explicit, this commit changes the config parser to
reject pattern lines that don't occur in a [section].

Differential Revision: https://phab.mercurial-scm.org/D96
2017-07-15 13:21:23 -07:00
Gregory Szorc
edf6de3f78 sparse: use set for capturing profiles
Order doesn't need to be preserved. A set is acceptable.

Differential Revision: https://phab.mercurial-scm.org/D95
2017-07-15 13:07:57 -07:00
Alex Gaynor
088c6ecb28 util: remove dead code which used to be for old python2 versions
Differential Revision: https://phab.mercurial-scm.org/D107
2017-07-17 12:38:07 -04:00
Matt Harbison
7bfa32d43e help: cleanup grammar in the hooks section 2017-07-04 22:58:21 -04:00
Augie Fackler
23d737c926 merge with i18n 2017-07-04 10:18:44 -04:00
Augie Fackler
73e7629f41 revlog: backed out changeset ee3dde8eb4c5
We'll move this to the default branch.
2017-07-04 10:17:14 -04:00
Boris Feld
d6d64df885 configitems: register the 'web.templates' config 2017-06-30 03:45:53 +02:00
Boris Feld
6965edf646 configitems: register the 'web.style' config 2017-06-30 03:45:52 +02:00
Boris Feld
80e5b426c6 configitems: register the 'web.stripes' config 2017-06-30 03:45:51 +02:00
Boris Feld
aec01b0c2a configitems: register the 'web.refreshinterval' config 2017-06-30 03:45:50 +02:00
Boris Feld
dd08c3c7c0 configitems: register the 'web.prefix' config 2017-06-30 03:45:49 +02:00
Boris Feld
88f87cb825 configitems: register the 'web.port' config 2017-06-30 03:45:48 +02:00
Boris Feld
0cf9a565e3 configitems: register the 'web.ipv6' config 2017-06-30 03:45:47 +02:00
Boris Feld
67229c919a configitems: register the 'web.errorlog' config 2017-06-30 03:45:45 +02:00
Boris Feld
ac4da5873b configitems: register the 'web.encoding' config 2017-06-30 03:45:44 +02:00
Boris Feld
01eaec495b configitems: register the 'web.description' config 2017-06-30 03:45:43 +02:00
Boris Feld
bb6b276196 configitems: register the 'web.descend' config 2017-06-30 03:45:42 +02:00
Boris Feld
1057d66c85 configitems: register the 'web.deny_read' config 2017-06-30 03:45:41 +02:00
Boris Feld
b7e1ccb304 configitems: register the 'web.csp' config 2017-06-30 03:45:40 +02:00
Boris Feld
208bc8bf91 configitems: register the 'web.collapse' config 2017-06-30 03:45:38 +02:00
Boris Feld
80c4ae5bca configitems: register the 'web.certificate' config 2017-06-30 03:45:37 +02:00
Boris Feld
b2e546df95 configitems: register the 'web.cacerts' config 2017-06-30 03:45:36 +02:00
Boris Feld
b2cd539d01 configitems: register the 'web.baseurl' config 2017-06-30 03:45:35 +02:00
Boris Feld
b58ad1d77b configitems: register the 'web.allow_read' config 2017-06-30 03:45:34 +02:00
Boris Feld
88ddcbbd5b configitems: register the 'web.allow_archive' config 2017-06-30 03:45:33 +02:00
Boris Feld
9ac692bc8c configitems: register the 'web.address' config 2017-06-30 03:45:32 +02:00
Boris Feld
b22253c4ad configitems: register the 'web.accesslog' config 2017-06-30 03:45:31 +02:00
Boris Feld
ac80b45fb8 web: use '_unset' default value for proxy config method
This special value is needed to make sure registered default value are taken in
account.
2017-09-15 19:21:08 +02:00
Augie Fackler
f5d866f8ee tests: use int() instead of long() in test-pathencode.py 2017-09-16 11:48:05 -04:00
Augie Fackler
a832150cd3 tests: add xrange alias for test-pathencode.py 2017-09-16 11:47:53 -04:00
Augie Fackler
1bdc1915c7 python3: another 3 tests whitelisted 2017-09-16 11:33:16 -04:00
Augie Fackler
4f3dc48acb repair: reliably obtain bytestr of node ids 2017-08-22 21:22:34 -04:00
Augie Fackler
fdaf985a63 bundles: turn nbchanges int into a bytestr using pycompat.bytestr
Fixes some python 3 failures.
2017-09-15 18:38:36 -04:00
Augie Fackler
20e593170c exchange: hit opargs with pycompat.strkwargs before **-ing it
Fixes Python 3 problems.
2017-09-16 11:09:08 -04:00
Yuya Nishihara
9443bfa027 revlog: update signature of dummy addgroup() in bundlerepo and unionrepo
Per e85296920485, 711178a106a3 and 4d58af51001a.
2017-09-15 23:58:45 +09:00
Yuya Nishihara
0284e70ec0 py3: use 'surrogatepass' error handler to process U+DCxx transparently
It's disallowed by default on Python 3.

https://docs.python.org/3/library/codecs.html#error-handlers
2017-09-16 22:55:48 +09:00
Yuya Nishihara
cab88e001f py3: don't pass bytes to array.array() 2017-09-16 22:42:19 +09:00
Yuya Nishihara
f726056d04 py3: wrap bytes in encoding.from/toutf8b() with bytestr 2017-09-03 15:54:29 +09:00
Yuya Nishihara
cd2add86f9 py3: iterate bytes as a byte string in store.lowerencode() 2017-09-03 17:28:47 +09:00
Yuya Nishihara
12ba8b8351 py3: use bytechr() in store._buildlowerencodefun() 2017-09-03 17:27:50 +09:00
Yuya Nishihara
1c1ae74c58 store: give name to lowerencode function
lambda function isn't easy to track in traceback.
2017-09-03 17:26:10 +09:00
Yuya Nishihara
8a515cf238 py3: iterate bytes as a byte string in dagparser.py 2017-09-03 15:32:45 +09:00
Yuya Nishihara
e122413500 py3: wrap string constants in dagparser.py with bytestr() 2017-09-03 15:28:39 +09:00
Yuya Nishihara
2f65d15f59 py3: drop use of str() in dagparser.py 2017-09-03 15:25:50 +09:00
Yuya Nishihara
8c52ede766 dagparser: fix variable name in error message
There's no variable named 'type'.
2017-09-03 15:22:54 +09:00
Yuya Nishihara
81c2aaf747 py3: convert function name to bytes in ui.configwith() 2017-09-03 17:47:21 +09:00
Augie Fackler
34ec2fe8db drawdag: port to python 3 2017-08-23 01:23:16 -04:00
Augie Fackler
23df90a15a drawdag: add a couple of doctests to help with python3 porting 2017-08-23 10:51:26 -04:00
Augie Fackler
f2c654c577 drawdag: tagsmod.tag() takes a list of names, not a single name
We were getting lucky on Python 2 since we have only one-byte names,
but on Python 3 badness was happening.
2017-08-23 01:24:01 -04:00
Augie Fackler
af109efa42 bruterebase: port to python 3 2017-08-23 01:22:59 -04:00