diff mercurial/util.py @ 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 6f58430dfdd0
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.