download_strategy: fossil now outputs hash:

This commit is contained in:
Eric Knibbe 2025-06-21 10:08:09 -04:00
parent f238d3b494
commit 7e79232512
No known key found for this signature in database

View File

@ -1542,7 +1542,7 @@ class FossilDownloadStrategy < VCSDownloadStrategy
sig { override.returns(Time) } sig { override.returns(Time) }
def source_modified_time def source_modified_time
out = silent_command("fossil", args: ["info", "tip", "-R", cached_location]).stdout out = silent_command("fossil", args: ["info", "tip", "-R", cached_location]).stdout
Time.parse(T.must(out[/^uuid: +\h+ (.+)$/, 1])) Time.parse(T.must(out[/^(hash|uuid): +\h+ (.+)$/, 1]))
end end
# Return last commit's unique identifier for the repository. # Return last commit's unique identifier for the repository.
@ -1551,7 +1551,7 @@ class FossilDownloadStrategy < VCSDownloadStrategy
sig { override.returns(String) } sig { override.returns(String) }
def last_commit def last_commit
out = silent_command("fossil", args: ["info", "tip", "-R", cached_location]).stdout out = silent_command("fossil", args: ["info", "tip", "-R", cached_location]).stdout
T.must(out[/^uuid: +(\h+) .+$/, 1]) T.must(out[/^(hash|uuid): +(\h+) .+$/, 1])
end end
sig { override.returns(T::Boolean) } sig { override.returns(T::Boolean) }