mercurial/commands.py
changeset 41492 02186c6871ac
parent 41491 e6ec0737b706
child 41511 72a9aacff645
--- a/mercurial/commands.py	Tue Jan 29 15:37:14 2019 -0800
+++ b/mercurial/commands.py	Tue Jan 29 15:37:35 2019 -0800
@@ -5414,7 +5414,11 @@
         repo = scmutil.unhidehashlikerevs(repo, revs, 'nowarn')
         ctx1, ctx2 = scmutil.revpair(repo, revs)
 
-    relative = pats or ui.configbool('commands', 'status.relative')
+    relative = None
+    if pats:
+        relative = True
+    elif ui.hasconfig('commands', 'status.relative'):
+        relative = ui.configbool('commands', 'status.relative')
     uipathfn = scmutil.getuipathfn(repo, relative)
 
     if opts.get('print0'):