Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[metro] Flow-ignore .hg directory #1412

Closed
wants to merge 1 commit into from
Closed

[metro] Flow-ignore .hg directory #1412

wants to merge 1 commit into from

Conversation

robhogan
Copy link
Contributor

@robhogan robhogan commented Dec 21, 2024

Summary:
When using Sapling in an OSS checkout, Flow does not ignore files under .hg, leading to false errors especially in Saplings origbackups, which may contain old versions of files out of context.

Changelog: Internal

Test Plan:

Before

yarn flow ls | grep '\.hg'
/Users/robhogan/workspace/metro-sl/.hg/runlog/41hxy19HHF6cGBn491508.json
/Users/robhogan/workspace/metro-sl/.hg/runlog/37Z4u1Env4S8RkEa44097.json
<...>
/Users/robhogan/workspace/metro-sl/.hg/origbackups/packages/metro-file-map/src/watchers/common.js
/Users/robhogan/workspace/metro-sl/.hg/origbackups/packages/metro-file-map/src/watchers/FSEventsWatcher.js
yarn flow ls | wc -l
   25908

After

yarn flow ls | grep '\.hg'
<empty response>
yarn flow ls | wc -l
   25861

Reviewers:

Subscribers:

Tasks:

Tags:

Stack created with Sapling. Best reviewed with ReviewStack.

Summary:
When using Sapling in an OSS checkout, Flow does not ignore files under `.hg`, leading to false errors especially in Saplings `origbackups`, which may contain old versions of files out of context.

Changelog: Internal

Test Plan:
## Before
```
yarn flow ls | grep '\.hg'
/Users/robhogan/workspace/metro-sl/.hg/runlog/41hxy19HHF6cGBn491508.json
/Users/robhogan/workspace/metro-sl/.hg/runlog/37Z4u1Env4S8RkEa44097.json
<...>
/Users/robhogan/workspace/metro-sl/.hg/origbackups/packages/metro-file-map/src/watchers/common.js
/Users/robhogan/workspace/metro-sl/.hg/origbackups/packages/metro-file-map/src/watchers/FSEventsWatcher.js
```

```
yarn flow ls | wc -l
   25908
```

## After
```
yarn flow ls | grep '\.hg'
<empty response>
```

```
yarn flow ls | wc -l
   25861
```

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot facebook-github-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 Dec 21, 2024
@robhogan robhogan changed the title [metro] Flow-ignore .hg directory Flow-ignore .hg directory Dec 21, 2024
@facebook-github-bot
Copy link
Contributor

@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@robhogan merged this pull request in d0e630b.

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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants