sapling/eden/scm/lib/fsinfo
Jun Wu c5c75c9f59 fsinfo: autocorrect "" to "."
Summary:
Without this:

  In [3]: util.getfstype('')
  IOError: [Errno 2] No such file or directory (os error 2)

And there is a code path hitting this:

  File "edenscm/mercurial/util.py", line 1483, in checknlink
    fstype = getfstype(os.path.dirname(testfile))
		# testfile = '.'
	  # os.path.dirname(".") = ""

The old implementation works fine for an empty path:

	In [2]: m.util.getfstype('')
  Out[2]: 'eden'

So let's make the new Rust implementation consistent.

Reviewed By: xavierd

Differential Revision: D20313387

fbshipit-source-id: 258c424a3e8a796d983e20b0d4656e8e3f413706
2020-03-11 17:35:40 -07:00
..
examples fsinfo: try harder to get fuse fs type 2020-03-11 17:35:39 -07:00
src fsinfo: autocorrect "" to "." 2020-03-11 17:35:40 -07:00
Cargo.toml fsinfo: backport from telemetry 2020-03-11 17:35:37 -07:00