What is the purpose of closing a branch

alt text

I was wondering what the purpose of closing a branch is. As for the issue-1 branch, I have already closed. But

  • I still see issue1-1 in my revision schedule
  • I can still switch to issue1-1 branch and continue issue1-1 .

So what is the purpose of closing a branch?

+4
source share
2 answers

See: https://www.mercurial-scm.org/wiki/PruningDeadBranches

This is informative, so hg branches will show that these branches are closed. And hg heads --active will not display any chapters marked as closed.

Ultimately, the number of branches can be significant and can add to the information noise. This is a good way to reduce some of this noise.

+5
source

That is why named branches are probably not the right choice for each branch and for each branch - you can hide them, but you cannot eliminate them. Consider the reservation of the named branches for long-lived concepts such as "stable", "experimental", etc. For each release and for each branch component, either anonymous branches, clone branches, or bookmarks are the best solutions. Everything is nicely described here: Mercurial Branching Guide .

+1
source

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


All Articles