Bug 1635809 - Use |file| instead of |modifies| in the hg revset query to catch file deletions. r=kvark

Closer look at the man pages shows that the file() query will catch any file
changes, whereas the modifies() query will only capture files that were
modified, which excludes strict deletions.

Depends on D74065

Differential Revision: https://phabricator.services.mozilla.com/D74066
This commit is contained in:
Kartikaya Gupta 2020-05-06 16:09:23 +00:00
Родитель 2c61b5048f
Коммит 447162a66b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -401,7 +401,7 @@ if DEBUG:
eprint(line.decode('utf-8', 'ignore'))
# Also flag any changes that touch the project
query = '(' + wider_range + ') & modifies("glob:' + relative_path + '/**")'
query = '(' + wider_range + ') & file("glob:' + relative_path + '/**")'
for cset in get_multiple_revs(query, '{node}'):
debugprint("Changeset %s modifies %s" % (cset, relative_path))
hg_commits[cset].touches_sync_code = True