Patchwork [1,of,2] debugfsinfo: show fstype for given path

login
register
mail settings
Submitter Jun Wu
Date March 27, 2017, 1:33 a.m.
Message ID <0b8f4bab3597b1621c07.1490578418@localhost.localdomain>
Download mbox | patch
Permalink /patch/19720/
State Accepted
Headers show

Comments

Jun Wu - March 27, 2017, 1:33 a.m.
# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 1490574577 25200
#      Sun Mar 26 17:29:37 2017 -0700
# Node ID 0b8f4bab3597b1621c07bfc82b9c16a77459a9b1
# Parent  e86eb75e74ce1b0803c26d86a229b9b711f6d76a
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r 0b8f4bab3597
debugfsinfo: show fstype for given path
Yuya Nishihara - March 27, 2017, 1:02 p.m.
On Sun, 26 Mar 2017 18:33:38 -0700, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark@fb.com>
> # Date 1490574577 25200
> #      Sun Mar 26 17:29:37 2017 -0700
> # Node ID 0b8f4bab3597b1621c07bfc82b9c16a77459a9b1
> # Parent  e86eb75e74ce1b0803c26d86a229b9b711f6d76a
> # Available At https://bitbucket.org/quark-zju/hg-draft
> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r 0b8f4bab3597
> debugfsinfo: show fstype for given path

You beat me. Queued, thanks.

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -791,5 +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('.') 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'))