Mercurial clone from a branch

后端 未结 5 703
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 06:22

We have a repository with three named branches, I wanted to clone one of the branches. Is there a mercurial command to do that? If I provide the path (of branch) with hg clo

5条回答
  •  别那么骄傲
    2020-12-24 06:46

    Benjamin's right. But is that really what you want to do? In particular, you'll only get the changesets needed to make up that branch, and nothing else - and that would, for example, prevent you from pulling changesets in from the trunk or other branches. You might well be better off just cloning the entire repository and then simply working in the branch you are interested in; this will let you keep your repository in sync with the one you're pulling from more easily.

提交回复
热议问题