[PATCH] debugfsinfo: print fstype information

Jun Wu quark at fb.com
Sun Mar 12 09:34:53 UTC 2017


# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1489311257 28800
#      Sun Mar 12 01:34:17 2017 -0800
# Node ID ff9af50d033388f74cbaf1eeac1509b3e75da07b
# Parent  9da40a9e54c419490a2ff23b9dda7acc109f81cd
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r ff9af50d0333
debugfsinfo: print fstype information

Since we have util.getfstype, it'll be handy to use "debugfsinfo" to test
it.

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -791,4 +791,5 @@ def debugfsinfo(ui, path="."):
     util.writefile('.debugfsinfo', '')
     ui.write(('exec: %s\n') % (util.checkexec(path) and 'yes' or 'no'))
+    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'))


More information about the Mercurial-devel mailing list