Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix detection of added/removed files when a directory is moved or cloned#1660

Open
robhogan wants to merge 10 commits intomainfrom
export-D94362228
Open

Fix detection of added/removed files when a directory is moved or cloned#1660
robhogan wants to merge 10 commits intomainfrom
export-D94362228

Conversation

@robhogan
Copy link
Contributor

Differential Revision: D94362228

robhogan and others added 10 commits February 25, 2026 04:37
Summary:
Adds optional mutation tracking to FileSystem's mutation methods via a FileSystemListener parameter, and add an implementation that aggregates *net* changes into a batch.

The three file change maps are mutually exclusive, as are the two directory change sets.

Differential Revision: D92006310
…mmediately before each emit

Differential Revision: D92008990
…ngeAggregator and reduce duplication

Differential Revision: D93984442
…ngeAggregator and reduce duplication

Summary:
Adds utility methods to FileSystemChangeAggregator:
- isEmpty(): checks if there are any changes tracked
- getMappedView(): returns a view with metadata transformed by a mapping function
- Local mapIterable helper for the transformation

These methods support cleaner code when consuming file system changes.
Adds a new `changes` field to ChangeEvent with structured file system change metadata.
- Updates ChangeEvent type to include `changes: ReadonlyFileSystemChanges<{isSymlink: boolean}>`
- Marks `eventsQueue` as deprecated
- Uses getMappedView() to efficiently provide plugin-specific and public change views
- Updates tests to verify the new changes field with isSymlink metadata

Differential Revision: D94076918
…ventsQueue, update tests to use new API

Differential Revision: D94077032
…s` rather than `eventsQueue`

Differential Revision: D94077082
Differential Revision: D94241640
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 25, 2026

@robhogan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94362228.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant