mercurial/scmutil.py
changeset 33499 0407a51b9d8c
parent 33352 967ac37f3d45
child 33505 389536aff376
--- a/mercurial/scmutil.py	Tue Jul 11 08:52:55 2017 -0700
+++ b/mercurial/scmutil.py	Fri Jul 14 14:22:40 2017 -0700
@@ -282,7 +282,7 @@
 def checkportabilityalert(ui):
     '''check if the user's config requests nothing, a warning, or abort for
     non-portable filenames'''
-    val = ui.config('ui', 'portablefilenames', 'warn')
+    val = ui.config('ui', 'portablefilenames')
     lval = val.lower()
     bval = util.parsebool(val)
     abort = pycompat.osname == 'nt' or lval == 'abort'
@@ -553,7 +553,7 @@
     Fetch user defined path from config file: [ui] origbackuppath = <path>
     Fall back to default (filepath) if not specified
     '''
-    origbackuppath = ui.config('ui', 'origbackuppath', None)
+    origbackuppath = ui.config('ui', 'origbackuppath')
     if origbackuppath is None:
         return filepath + ".orig"