mercurial/commands.py
changeset 38358 57dc72b56b6c
parent 38357 31ed65f9c5ad
child 38361 2ceea1554d1e
--- a/mercurial/commands.py	Thu May 03 12:10:47 2018 +0900
+++ b/mercurial/commands.py	Thu May 03 12:04:36 2018 +0900
@@ -359,11 +359,12 @@
     else:
         def makefunc(get, fmt):
             return get
+    datahint = rootfm.datahint()
     funcmap = [(makefunc(get, fmt), sep) for fn, sep, get, fmt in opmap
-               if opts.get(opnamemap.get(fn, fn))]
+               if opts.get(opnamemap.get(fn, fn)) or fn in datahint]
     funcmap[0] = (funcmap[0][0], '') # no separator in front of first column
     fields = ' '.join(fn for fn, sep, get, fmt in opmap
-                      if opts.get(opnamemap.get(fn, fn)))
+                      if opts.get(opnamemap.get(fn, fn)) or fn in datahint)
 
     def bad(x, y):
         raise error.Abort("%s: %s" % (x, y))