facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.57k stars 987 forks source link

getdeps optionally can get hg info from env var (#59) #1011

Closed dgrnbrg-meta closed 2 years ago

dgrnbrg-meta commented 2 years ago

Summary: X-link: https://github.com/facebook/bistro/pull/59

X-link: https://github.com/facebook/folly/pull/1734

X-link: https://github.com/facebook/fboss/pull/113

Adds an environment variable to getdeps to provide hg info to avoid calling hg directly.

When using getdeps inside a containerized environment (which we need to build Research Super Cluster tooling with the correct linker attributes), getdeps fails because of unregistered mercurial extensions in the hgrc.

This allows getdeps to be useable in an environment where the mercurial extensions used in a project aren't installed/available.

Reviewed By: vivekspai

Differential Revision: D34732506

facebook-github-bot commented 2 years ago

This pull request was exported from Phabricator. Differential Revision: D34732506