debugfsinfo: show fstype for given path
authorJun Wu <quark@fb.com>
Sun, 26 Mar 2017 17:29:37 -0700
changeset 31633 5b3d55a6821f
parent 31632 d059821fc89f
child 31634 35738db2037a
debugfsinfo: show fstype for given path
mercurial/debugcommands.py
--- 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')