changeset 31638:5b3d55a6821f

debugfsinfo: show fstype for given path
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 17:29:37 -0700
parents d059821fc89f
children 35738db2037a
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sun Mar 26 21:10:25 2017 +0530
+++ b/mercurial/debugcommands.py	Sun Mar 26 17:29:37 2017 -0700
@@ -790,7 +790,7 @@
     """show information detected about current filesystem"""
     util.writefile('.debugfsinfo', '')
     ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no'))
-    ui.write(('fstype: %s\n') % (util.getfstype('.') or '(unknown)'))
+    ui.write(('fstype: %s\n') % (util.getfstype(path) or '(unknown)'))
     ui.write(('symlink: %s\n') % (util.checklink(path) and 'yes' or 'no'))
     ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no'))
     ui.write(('case-sensitive: %s\n') % (util.fscasesensitive('.debugfsinfo')