Auto include list - Compatibility broken in 2.0.4
Created originally on Bitbucket by Anonymous
Hi, We have switched from thg 1.1.6.1 to thg 2.0.4 and have an issue with auto include list on commit. In particular we have an pre-commit hook which embeds certain metadata into specific files . These files are in the auto include list. The old thg commited correctly, why the new one commits all the files prior to the execution of the pre-commit hook, and then leaves the files changed by the hook in the current directory.
We have located the issue and properly corrected in our local versions. Can anybody confirm the issue or suggest an alternative resolution?
The fix is in tortoisehg/hgqt/commit.py and it is to turn the line 635 from cmdline.extend(['--include', fname]) to cmdline.extend([fname]) (changeset 281df39c178e)
Thank you