TortoiseHg: Push Branch

五迷三道 提交于 2019-12-04 02:03:54
Tim Henigan

The easiest way to do this is via the command-line using hg push -r . from the branch with the change you want to push. See hg nudge for details.

That being said, it is also possible via TortoiseHG:

  1. Open your Repository Explorer
  2. Open Tools->Synchronize
  3. Open "Advanced Options"
  4. Set "Target Revision" to the changeset that you want to push
  5. Select "Push"

This should only push the changeset you specified (along with any parents of that changeset which may be required). If you limit the changesets that are pushed to those on your default branch, there should be no warning about creating additional heads.

More information (well, not that much) can be found in the Section 4.9 of the TortoiseHg documentation.

Here’s another way to do it:

  1. Open Repository Explorer.
  2. Click Determine and mark outgoing changesets (green up arrow button). All your changesets / branches will be marked with an up arrow.
  3. Right-click on the changeset you want to push. From the menu, select Push to here.

Works the same way as the previous answer, but allows you to select the changeset from the list, without typing or pasting the target changeset id.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!