I have been looking into writing an extension for Mercurial and have found this documentation.
From what I can see, you can create new commands within the Mercurial environment but what I was hoping to achieve however, was to override an existing command like the commit
command. My override would contain logic and if it passes it would then call the original commit
super function.
Is it possible to extend the functionality of pre-existing Mercurial commands?
Thanks