Here is my problem:
I have a remote mercury repository in which the hook will be configured for both the incoming and the variable groups, and I got the ReviewBoard setting on another server. The idea is to automate the generation of requests for a request for a request after moving from developers to a remote repository. Of course, I need a hook that calls a post-review, which also uses a submit-as user, which is retrieved using the mercurial api (ctx.user ()), or all requests for feedback requests will be in the name of the user who connects the remote repository to view server.
My main dilemma is actually getting the initial revision and stop version, if I use the inbox, I get all the nodes of the change sets, but, of course, every time the call is called, the call is not saved between each call. On the other hand, if I use changegroup, I get only the first set of changes, and I can not compare. Also for comparaison, I need a way to keep the previous tip in order to send it to the post review basically:
post-review --revision-range=previoustip:newtip --submit-as=ctx.user()
If you have ideas on how to solve the problem, I will be happy. I am writing a hook in python.
source
share