download_strategy: mercurial source_modified_time

This commit is contained in:
Vlad Shablinsky 2016-05-01 00:17:45 +03:00 committed by Xu Cheng
parent f54f27d621
commit 155960d991

View File

@ -765,6 +765,10 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
end end
end end
def source_modified_time
Time.parse Utils.popen_read("hg", "tip", "--template", "{date|isodate}", "-R", cached_location.to_s)
end
private private
def cache_tag def cache_tag