Which hg command only displays headers in the system?

I have two repositories, I will name them RepoA and RepoB . RepoA has many sets of changes that are missing from another. There are many heads in RepoB and only a few in RepoB . I need a command that tells me only those heads that will be added to RepoB after hg pull.

I need this because I want to leave some of the heads in RepoA behind.

+4
source share
2 answers

From the repo you want to pull, try the following command:

 hg log -r "outgoing('path\to\your\repo') and head()" 

If you cannot run this on the repo from which you want to extract directly, then clone it locally and run it on the clone.

head () is defined as β€œChanges are a named branch of a branch,” so if the headers you are interested in are not called branches, I'm not sure if this will work.

Check out hg help revset for more information.

+2
source

The hg incoming command has the -b option for a particular branch. Perhaps this is what you need in this case.

+1
source

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


All Articles