Creating a mercurial log for a specific branch

后端 未结 3 1792
庸人自扰
庸人自扰 2021-01-01 10:07

Is it possible to pull changes for just a single branch vs. the entire repository. We have parallel development on different branches and do not want changes from another b

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 10:21

    If you're using proper hg branches, then you should be able to use the --only-branch option:

    hg log --only-branch my_branch
    

    That will show the changesets only for a given branch.

    Edit: Looks like "--only-branch" is deprecated, but depending on the version of mercurial you use it will still be there. See https://www.mercurial-scm.org/repo/hg/help/log . If your mercurial is too new, you may only have the "-b"/"--branch" option.

提交回复
热议问题