getdeps: don't use fbsource hash in the simple shipit fetcher

Summary:
This avoids invalidating the entire build in response
to just running `hg amend`, which is frustrating and slow.

Reviewed By: chadaustin

Differential Revision: D18005409

fbshipit-source-id: ef93313859919298be78204046eb08bcadc5398e
This commit is contained in:
Wez Furlong 2019-10-21 04:07:32 -07:00 committed by Facebook Github Bot
parent 7c112efa92
commit 2471f855c2

View File

@ -473,7 +473,10 @@ class SimpleShipitTransformerFetcher(Fetcher):
return mapping.mirror(self.build_options.fbsource_dir, self.repo_dir)
def hash(self):
return get_fbsource_repo_hash(self.build_options)
# We return a fixed non-hash string for in-fbsource builds.
# We're relying on the `update` logic to correctly invalidate
# the build in the case that files have changed.
return "fbsource"
def get_src_dir(self):
return self.repo_dir
@ -540,7 +543,8 @@ class ShipitTransformerFetcher(Fetcher):
raise
def hash(self):
return get_fbsource_repo_hash(self.build_options)
# We return a fixed non-hash string for in-fbsource builds.
return "fbsource"
def get_src_dir(self):
return self.repo_dir