I have files with a lot of macros which I want to replace with C++ code with templates.
In doing so, I'll have to change code like this
#define stuff_to_do (x) \
do_some_stuff_##x( ); \
do_some_more_stuff( x );
into
template <class T>
void stuff_to_do( T x ) {
do_some_stuff<T>();
do_some_more_stuff();
}
i.e. change tabs/spaces, and escape characters, and small insertions (like <T>
) here and there.
It is important, however, that the annotations can point to the programmer who did the changes before this.
There's no way to tell hg annotate
to not show certain commits. Henceforth people checking "who originally wrote this" are going to have to look "before" this mass change themselves.
Some things that might make that future detective work easier are:
hg commit --user "codeformat bot"
so folks know not to "blame" you