Is there a way to view someone's code before they hit on Mercurial?

I would like to be able to view other developer codes before they are redirected to the central repository. Developers are in remote places, so switching to their desktop is not an option.

Currently, they just click, and if there is a problem, they roll back. But this is not a very good approach, as someone can pull before they get a rollback option.

+4
source share
5 answers

Mercurial is distributed, and therefore, it must be able to adapt to any workflow. Try appointing someone as an integration manager or use a dictator and lieutenants workflow.

+9
source

How do I know the reviewer repository between developers and the main repository? Only you push from there to the main one.

+3
source

I supported the kelloti answer, as this is just an extension of it, but just used repository levels. Ask people to push their unreviewed change sets to the Central Searching needs review registry, and ask reviewers to review work from there to the central QA repository in need and force QA people to push out the central repositories of release candidates.

With a distributed version control system, you can make many centralized repositories as easy as you can do many developer repositories.

+1
source

In my last project, we followed a very ramified development model - each task had a branch with a task number. Code checks were performed against the named branch. We clearly wanted them to be transferred to the central repository, and the developers pulled them out.

However, no task named branch was merged with the integration branch (in our case, by default, but it could be any function branch) until it passed the code check.

Many mercury developers do not like to use the short-lived branches that remain in the repository, but I find it makes it easier to keep track of the history, especially if you look at the history of one change - you know that the changes for a specific task relate to the associated named branch.

+1
source

Perhaps using shelf extension is a good solution? I am not very familiar with Mercurial, but this may work for you.

https://www.mercurial-scm.org/wiki/ShelveExtension

-2
source

Source: https://habr.com/ru/post/1338438/


All Articles