Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to reopen a closed branch in Mercurial?

Tags:

mercurial

People also ask

How do I reopen a closed branch on mercurial?

Just forget that it's closed. Switch to the branch, make the changes and commit. It will be automatically reopened. When you're done you can close it again.

Can you push to a closed branch?

Closing branches should not by themselves prevent you from pushing. A closed branch is simply a branch that ends in a commit that carries the "closed branch" meta information.

What is mercurial default branch?

Named branches If no branch name was set, Mercurial assigns the branch name "default". So the name of the default branch in a repository is "default" (which, for example, is not displayed when doing a hg log). Mercurial branch names may be used for whatever reasons users want.


You can just hg update to the closed branch then do another hg commit and it will automatically reopen.

The closed flag is just used to filter out closed branches from hg branches and hg heads unless you use the --closed option - it doesn't prevent you from using the branches.


You can reopen a branch by using the "-f" flag when 'creating' the branch.

No, this command will create a new branch with the same name.

Just forget that it's closed. Switch to the branch, make the changes and commit. It will be automatically reopened. When you're done you can close it again.


try with following:

hg pull && hg update branch_name

Now make a small change to one of the file and then commit it

 hg commit -m "minor change"

then push it

hg push -b . 

Now you should be able to work normally.