sapling/eden/fs/cli
Adam Simpkins 14a289528d fix a crash in edenfsctl top
Summary:
Older versions of EdenFS do not return the `fetchCountsByPid` field in the
`getAccessCounts()`.

The Python thrift client code returns this as `None` instead of as an empty
dictionary.  This behavior arguably seems like a bug in the thrift code, since
the field is not marked optional.  However, updating the thrift behavior would
have much wider implications for other projects.  Additionally it's probably
not worth putting a lot of effort in to the older "py" thrift generator code.

Update the `edenfsctl` code to explicitly use an empty dictionary if the value
received from the thrift call is `None`

Reviewed By: fanzeyi

Differential Revision: D22302992

fbshipit-source-id: eced35a19d86e34174f73e27fdc61f1e2ba6a57f
2020-06-29 20:43:01 -07:00
..
doctor suggest graceful restart in eden doctor version check 2020-05-21 09:38:58 -07:00
test fix rendering of process commands in eden top 2020-06-23 13:39:45 -07:00
__init__.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
buck.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
CMakeLists.txt Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
cmd_util.py update eden du to display an aggregated result of all mounts. 2020-06-10 19:29:25 -07:00
config.py avoid using Path.resolve on Windows 2020-06-23 16:55:13 -07:00
configinterpolator.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
configutil.py Convert type check targets in eden to use configuration 2020-05-08 15:24:57 -07:00
daemon_util.py update Python platform checks to use sys.platform 2020-04-03 16:52:32 -07:00
daemon.py run eden start command with stdin set to /dev/null 2020-05-28 11:32:01 -07:00
debug_posix.py Convert type check targets in eden to use configuration 2020-05-02 21:16:55 -07:00
debug.py delete the old eden debug set_log_level command 2020-04-06 18:53:00 -07:00
filesystem.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
fsck.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
hg_util.py dirstate: paths in hg are unicode, not bytes 2020-06-25 15:48:00 -07:00
logfile.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
main.py allow async subcmd run functions 2020-06-22 11:27:11 -07:00
mtab.py Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
overlay.py Convert type check targets in eden to use configuration 2020-05-02 21:16:55 -07:00
proc_utils_win.py get edenfsctl stop working on Windows 2020-04-15 15:46:25 -07:00
proc_utils.py get edenfsctl stop working on Windows 2020-04-15 15:46:25 -07:00
rage.py fix eden rage on Windows 2020-06-10 19:29:52 -07:00
redirect.py remove version check from redirect fixup 2020-05-12 15:43:31 -07:00
stats_print.py remove stats memory command 2020-05-05 12:09:11 -07:00
stats.py rename stats io to stats fuse and stats latency to stats fuse-latency 2020-05-05 12:09:12 -07:00
subcmd.py allow async subcmd run functions 2020-06-22 11:27:11 -07:00
systemd_service.py move systemd-related start code to its own module 2020-04-15 15:46:24 -07:00
systemd.py add extra 2 extra type hints for systemd Manager 2020-05-11 20:52:13 -07:00
tabulate.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
telemetry.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
top.py fix a crash in edenfsctl top 2020-06-29 20:43:01 -07:00
trace_cmd.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
trace.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
ui.py Convert type check targets in eden to use configuration 2020-05-02 21:16:55 -07:00
util.py avoid using Path.resolve on Windows 2020-06-23 16:55:13 -07:00
version.py update edenfsctl to report the compile-time version 2020-04-22 12:48:48 -07:00
win_ui.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
winproc.py packaging: use scheduled tasks 2020-06-10 19:29:15 -07:00