mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
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:
parent
2c61b5048f
commit
447162a66b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user