Bug 1334167: calculate head revision with -r .; r=Callek

MozReview-Commit-ID: 6tmdO5qwD4g

--HG--
extra : rebase_source : 652995c97ffc22125343aedfb5b07eddda5b7d38
This commit is contained in:
Dustin J. Mitchell 2017-01-31 18:28:06 +00:00
parent 4811200bb1
commit 1468523af0

View file

@ -26,4 +26,7 @@ def match_utc(params, hour=None, minute=None):
def calculate_head_rev(options):
return subprocess.check_output(['hg', 'log', '-r', options['head_ref'], '-T', '{node}'])
# we assume that run-task has correctly checked out the revision indicated by
# GECKO_HEAD_REF, so all that remains is to see what the current revision is.
# Mercurial refers to that as `.`.
return subprocess.check_output(['hg', 'log', '-r', '.', '-T', '{node}'])