Commit eddca91c authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

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
parent 88742563
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment