Martin Geisler
969ff27288
Merge with crew-stable
2009-09-19 13:55:18 +02:00
Nicolas Dumazet
7626c98965
config: abort on indented non-continuation lines (issue1829)
...
Previously, as soon as a continuation would be met, "cont" would stay
forever set to True, but "item" was set back to "None".
This caused the continuation code bits to run every time, until the next
"self.get(section, item) + '\n'" which would crash.
2009-09-12 11:17:07 +02:00
Andrey
b2bc363ed9
config: improve code readability
2009-08-12 11:50:27 +02:00
Nicolas Dumazet
7eadbe8d42
for calls expecting bool args, pass bool instead of int
...
str.splitlines and email.message.as_string both expect a bool argument
defaulting at False: replace f(1) by f(True) and f(0) by f()
2009-07-13 09:50:26 +09:00
Simon Heimberg
09ac1e6c92
separate import lines from mercurial and general python modules
2009-04-28 17:40:46 +02:00
Matt Mackall
ec94003cea
config: make remap actually work
2009-05-04 14:21:43 -05:00
Matt Mackall
83d555f0f7
config: add parse interface
2009-04-30 19:22:06 -05:00
Matt Mackall
f3552e4141
config: allow spaces in key portion of items
2009-04-29 20:47:30 -05:00
Martin Geisler
539f6e1aac
config: add copyright and license header
2009-04-26 01:56:41 +02:00
Dirkjan Ochtman
80de6974e4
more whitespace cleanup and some other style nits
2009-04-27 12:37:19 +02:00
Matt Mackall
86dab18ddb
config: getsource -> source
2009-04-26 16:50:43 -05:00
Matt Mackall
036f77e767
config: add section filter to read
...
move section filtering out of ui.readconfig
kill section filtering in config.update
2009-04-26 16:50:43 -05:00
Matt Mackall
f74e9a6511
config: deal with spaces at end of line more carefully
2009-04-26 16:50:43 -05:00
Matt Mackall
10af375ad9
ui: less links to parentui
2009-04-26 16:50:43 -05:00
Matt Mackall
1217ed8107
config: add some helper methods
2009-04-26 16:50:43 -05:00
Matt Mackall
9c7f505708
config: split source data out into separate map
2009-04-26 16:50:43 -05:00
Matt Mackall
a85b71443f
config: add %unset name support
2009-04-26 16:50:43 -05:00
Matt Mackall
bc6c19544f
config: allow including other config files
2009-04-26 16:50:43 -05:00
Matt Mackall
8034ce6ca9
hgweb: use config.config
2009-04-26 16:50:43 -05:00
Matt Mackall
e8b3de6bf8
ui: introduce new config parser
2009-04-23 15:40:10 -05:00