Mercurial > public > mercurial-scm > hg-stable
diff tests/test-convert-identity.t @ 45345:6c56277317c2
commitctx: directly pass a ChangingFiles object to changelog.add
We pass the rich object to the changelog and it read the field it needs.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 25 Jul 2020 15:55:09 +0200 |
parents | a2c02877b097 |
children |
line wrap: on
line diff
--- a/tests/test-convert-identity.t Sat Jul 25 15:49:12 2020 +0200 +++ b/tests/test-convert-identity.t Sat Jul 25 15:55:09 2020 +0200 @@ -8,9 +8,10 @@ > convert = > EOF $ cat <<'EOF' > changefileslist.py - > from mercurial import (changelog, extensions) + > from mercurial import (changelog, extensions, metadata) > def wrap(orig, clog, manifest, files, *args, **kwargs): - > return orig(clog, manifest, [b"a"], *args, **kwargs) + > files = metadata.ChangingFiles(touched=[b"a"]) + > return orig(clog, manifest, files, *args, **kwargs) > def extsetup(ui): > extensions.wrapfunction(changelog.changelog, 'add', wrap) > EOF