Mercurial > hg
changeset 12088:1f71dffabc53
parsebool: accept always as true and never as false
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 10:28:25 -0500 |
parents | a88a4720c2f0 |
children | 70f4a0f4e9a3 |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Sat Aug 28 21:50:35 2010 -0500 +++ b/mercurial/util.py Mon Aug 30 10:28:25 2010 -0500 @@ -1436,8 +1436,9 @@ except socket.error: raise Abort(_("no port number associated with service '%s'") % port) -_booleans = {'1': True, 'yes': True, 'true': True, 'on': True, - '0': False, 'no': False, 'false': False, 'off': False} +_booleans = {'1': True, 'yes': True, 'true': True, 'on': True, 'always': True, + '0': False, 'no': False, 'false': False, 'off': False, + 'never': False} def parsebool(s): """Parse s into a boolean.