This comes during the freeze because I had to wait for the mercurial
freeze before properly testing this new feature. Nevertheless I think
that we should try to support it on the next release, since 'commit
--amend' is one of the top new features on mercurial 2.2.
The actual patch which adds support for --amend is the second one. The
first patch simply adds an 'hgversionint' variable to the
tortoisehg.util.hgversion module to make it easier to compare the
current mercurial version with a given version.
In most cases one would not check the actual mercurial version, but
the existence of a given capability, but in this case there is no way
to tell whether the commit command supports amend other than checking
the actual version number.