I want to check what files have been modified in current commit and base on that I want to modify or not specified file and add it to that commit.
I was thinking about using script on pretxncommit hook who gives me information that I need but I don't see any possible way to add new modified file to that commit.
Is there any way to do that?
it would not be at
pretxncommitbecause at that point the changeset is already builtyou'd need to hook earlier, likely on
precommithttps://book.mercurial-scm.org/read/hook.html