mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
7c112efa92
commit
2471f855c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user