Change TortoiseHG default merge relationship

I am using version 2.5.1 of TortoiseHG

I am part of an open source project in which we use different branches (mainly the current ABI, API, and default branch), which often require merges. In such cases, I use the "Merge with Local" context menu option in Workbench TortoiseHG. For example, when merging the v0-8 branch into the default branch, the following commit message is generated using the default settings of TortoiseHG:

Combine with v0-8

I would prefer to receive an automatically generated message, for example (or the like):

Merge v0-8 by default

While the default is any selected local branch, and v0-8 means the one we want to merge into a local branch. This message would make clear what was going on without having to manually enter it manually.

How can i do this?

+4
source share
1 answer

Unfortunately, there is no way to change this predefined message. TortoiseHG maintains this line in the source code. The format string that can be found in the i18n / subdirectory is as follows:

  #, python-format
  msgid "Merge with %s"
  msgstr ""

As you can see, there is one replaceable token, which is the branch that you are merging.

+5
source

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


All Articles