sapling/eden/mononoke/common
Yan Soares Couto 4d52344fee Use FileChange enum instead of Option<FileChange>
Summary:
for now this changes:
```
struct FileChange {
  ...stuff
}
fn f(x: Option<FileChange>)
```
to
```
struct TrackedFileChange {
  ...stuff
}
enum FileChange {
  TrackedChange(TrackedFileChange),
  Deleted,
}
fn f(x: FileChange)
```

This makes it much clearer that `None` actually means the file was deleted. It will also be useful as in the next diff I will add more stuff inside FileChange (for untracked changes), and this refactor will make it easy.

(The refactor from using `Option` to putting it all inside the enum isn't really necessary, but IMO it looks much clearer, so I did it.)

Reviewed By: StanislavGlebik

Differential Revision: D30103454

fbshipit-source-id: afd2f29dc96baf9f3d069ad69bb3555387cff604
2021-08-11 08:56:40 -07:00
..
allocation_tracing rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
async_limiter rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
bounded_traversal rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
copy_utils Use FileChange enum instead of Option<FileChange> 2021-08-11 08:56:40 -07:00
dedupmap rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
futures_watchdog rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
iterhelpers rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
reloader rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
rendezvous rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
rust rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
scribe_ext rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
scuba_ext rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
sql_construct rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
timeseries rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
topo_sort rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
type_map rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00
uniqueheap rust: remove chashmap from cargo vendoring 2021-08-04 07:31:08 -07:00