From 155960d991a8f12b1176a55f0da8de1cb6f1ee24 Mon Sep 17 00:00:00 2001 From: Vlad Shablinsky Date: Sun, 1 May 2016 00:17:45 +0300 Subject: download_strategy: mercurial source_modified_time --- Library/Homebrew/download_strategy.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index ef750cd22..71f47a227 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -765,6 +765,10 @@ class MercurialDownloadStrategy < VCSDownloadStrategy end end + def source_modified_time + Time.parse Utils.popen_read("hg", "tip", "--template", "{date|isodate}", "-R", cached_location.to_s) + end + private def cache_tag -- cgit v1.2.3