Rename default branch to TortoiseHG

Is it possible to rename 'default' to 'production' in TortoiseHG?

+6
source share
2 answers

You cannot do this directly from Tortoise2.0 + settings , but through the hg command line.
As described in the hgbook :

Mercurial allows you to assign a permanent name to a branch.
There is always a branch named default. Even before you start naming the branches yourself, you can find traces of the default branch if you are looking for them.

To get started with named branch , use the hg branches command

 $ hg branch production marked working directory as branch production $ hg branch production 

Then check if this change is reflected in TortoiseHg

+3
source

You cannot rename a branch to Mercurial (or TortoiseHg, for that matter). Instead, you should start a new branch named production and place it in the current default branch.

You can do it in TortoiseHg 2.0, where you

  • Click the line representing the working directory
  • Press the go button
  • Click to open a new branch
  • Fill in the branch name and click OK
  • Enter the commit message and click Commit.

TortoiseHg commit dialog

This will create a new branch named production . The old default branch will remain, and you can add new functions there before combining them into production when they are stable.

+6
source

Source: https://habr.com/ru/post/886920/


All Articles