Mercurial > hg
diff mercurial/configitems.py @ 40827:d23fd01cc115
commandserver: add config knob for various logging options
The default rotating options are copied from the blackbox extension.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Nov 2018 19:47:04 +0900 |
parents | 74a9f428227e |
children | 3764330f76a6 |
line wrap: on
line diff
--- a/mercurial/configitems.py Sat Nov 10 19:27:47 2018 +0900 +++ b/mercurial/configitems.py Sun Nov 18 19:47:04 2018 +0900 @@ -173,9 +173,18 @@ coreconfigitem('cmdserver', 'log', default=None, ) +coreconfigitem('cmdserver', 'max-log-files', + default=7, +) +coreconfigitem('cmdserver', 'max-log-size', + default='1 MB', +) coreconfigitem('cmdserver', 'message-encodings', default=list, ) +coreconfigitem('cmdserver', 'track-log', + default=lambda: ['chgserver', 'cmdserver'], +) coreconfigitem('color', '.*', default=None, generic=True,