开发者

Mercurial Hg and multiple users on a single repo

开发者 https://www.devze.com 2023-03-18 01:49 出处:网络
User A commited and pushed File A to the repo incrementing the version to 10. In the meantime, User B c开发者_运维知识库ommited File B and started pushing out to the repo.User B got a message about \'

User A commited and pushed File A to the repo incrementing the version to 10. In the meantime, User B c开发者_运维知识库ommited File B and started pushing out to the repo. User B got a message about 'pushing changes will create a new head, merge when possible'. User B did not know what to do at that time.

User B is me. What should I have done? I just freaked out and re-cloned the repo. My local copy was at version 9 at the time of my commit. So I wanted to update mine to 10 and then push mine out.

I am using Mercurial Hg.

Thanks.


You have to pull changes and merge them (In details you can read about it here: http://hginit.com/04.html)

Also - don't refer to revision number, it makes sense only for single repository. As long as you have several copies of the one - the better is to refer to the commit by its hash.

0

精彩评论

暂无评论...
验证码 换一张
取 消