Merge pull request #3643 from scpeters/hgpath_3628

Use hgpath instead of "hg" to fix --HEAD hg builds
This commit is contained in:
Mike McQuaid 2018-01-08 13:10:18 +00:00 committed by GitHub
commit 13998f5e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1005,11 +1005,11 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
end
def source_modified_time
Time.parse Utils.popen_read("hg", "tip", "--template", "{date|isodate}", "-R", cached_location.to_s)
Time.parse Utils.popen_read(hgpath, "tip", "--template", "{date|isodate}", "-R", cached_location.to_s)
end
def last_commit
Utils.popen_read("hg", "parent", "--template", "{node|short}", "-R", cached_location.to_s)
Utils.popen_read(hgpath, "parent", "--template", "{node|short}", "-R", cached_location.to_s)
end
private