简体   繁体   中英

Pushing and new heads in mercurial

I'd like to see what exactly would be created during a push, if I get the abort: push creates new remote heads! error. How can I check that?

Some more details: I'm pulling from one repository (upstream) and pushing to a local fork which does have additional branches, but already contains all upstream ones. Also, I'm only pushing one upstream branch.

When I look at hg outgoing <fork_repo> , I see a stream of commits with a parent and then some commits without. I'm not sure how to understand that really.

The simplest way is to run hg pull . That way, your local repository will contain exactly what the remote repository will contain after the push.

If you don't want to pull, combining hg incoming and hg outgoing will usually give you enough information to see which are the two heads.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM