Bug 1272544 - artifact builds with git now only consider the last 500 revisions rather than all revisions for the last 500 commits. r=chmanchester

MozReview-Commit-ID: 21Y4S5t952d

--HG--
extra : rebase_source : c447adf697f9924d6738c15ccb8c0e170fed31d3
This commit is contained in:
Mark Hammond 2016-05-13 15:27:27 +10:00
Родитель cbf6f73785
Коммит fde8284626
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -824,11 +824,10 @@ class Artifacts(object):
return candidate_pushheads
def _get_hg_revisions_from_git(self):
# First commit is HEAD, next is HEAD~1, etc.
rev_list = subprocess.check_output([
self._git, 'rev-list', '--topo-order',
'HEAD~{num}..HEAD'.format(num=NUM_REVISIONS_TO_QUERY),
'--max-count={num}'.format(num=NUM_REVISIONS_TO_QUERY),
'HEAD',
])
hg_hash_list = subprocess.check_output([