# HG changeset patch # User Pierre-Yves David # Date 1626669848 -7200 # Node ID 03ef0c8fa7d5c8c712987fa79d991e4354f505af # Parent d905eff405d177fe5e74c3ba94710272db2e3fcf test: use `set_tracked` in `test-context` This is apparently the last user of the old API. Differential Revision: https://phab.mercurial-scm.org/D11160 diff -r d905eff405d1 -r 03ef0c8fa7d5 tests/test-context.py --- a/tests/test-context.py Sun Jul 18 22:49:26 2021 +0200 +++ b/tests/test-context.py Mon Jul 19 06:44:08 2021 +0200 @@ -240,7 +240,7 @@ with repo.wlock(), repo.lock(), repo.transaction(b'test'): with open(b'4', 'wb') as f: f.write(b'4') - repo.dirstate.normal(b'4') + repo.dirstate.set_tracked(b'4') repo.commit(b'4') revsbefore = len(repo.changelog) repo.invalidate(clearfilecache=True)