How to change the default branch to push in mercurial?

前端 未结 3 837
情书的邮戳
情书的邮戳 2021-01-12 02:36

I like creating named branches in Mercurial to deal with features that might take a while to code, so when I push I do a hg push -r default to ensure I\'m only

3条回答
  •  醉酒成梦
    2021-01-12 03:16

    Are you using Tortoise HG perhaps? Doing a full revert to an explicit branch name will cause Tortoise HG to remember the branch you're working on during subsequent commits. I'm not sure what metadata it gleans this from.

    hg up -r {branchname}
    

    e.g.

    hg up -r dev 
    

提交回复
热议问题