Wednesday 15 January 2014

mercurial - Automatically merge new heads on push -


Can a repository push with a hook and merge all the new heads created by this push?

My use case for this is as follows: I am trying to design a repository which will only allow very specific changes with the committed hook. The basic idea is to change existing files with better files ( better something that can be checked by external program), each user has a central repository Can clone and change the clone. When a user puts his changes in the central repository, the hook checks whether the quality increases in each branch and otherwise the push is dismissed. If users exit the synchronization, this will create more than one head which can automatically merge into the theory (taking the best version of each file).

In theory, your hook can do whatever you want. Write a program that evaluates and merges you into describing it, and connects it with that, to any person, group or incoming , Which is executed separately for each reaching change.

No comments:

Post a Comment