download_strategy: use short hash for mercurial

This commit is contained in:
Vlad Shablinsky 2016-08-01 16:18:26 +03:00 committed by Xu Cheng
parent 09d21ad258
commit 5ddee3502e
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -913,7 +913,7 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
end
def last_commit
Utils.popen_read("hg", "parent", "--template", "{node}", "-R", cached_location.to_s)
Utils.popen_read("hg", "parent", "--template", "{node|short}", "-R", cached_location.to_s)
end
private