race condition around thgstatus update create massive amount of leftover tmp file
Created originally on Bitbucket by andcycle
I spot this issue for a long time, and this really require some attention,
as I used to open Hg Commit and Hg Workbench window at the same time, it always have some conflict that TortoiseHg will race for update thgstatus file, the result is .hg folder will be filled with thousands even millions of .thgstatus-????? tmp file,
this will stress out the filesystem in no time.