parsebool: accept always as true and never as false
authorAugie Fackler <durin42@gmail.com>
Mon, 30 Aug 2010 10:28:25 -0500
changeset 12088 1f71dffabc53
parent 12087 a88a4720c2f0
child 12089 70f4a0f4e9a3
parsebool: accept always as true and never as false
mercurial/util.py
--- 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.