What is the best way to check which branch I am on with mercurial?
hg log -l 5
This seems to show me the latest commits in the repo and not about working state as git would, so I'm looking for something like git status
I suppose, which would tell me what branch I am on. hg status
doesn't show me anything.
Quickly switch to another branch or bookmarkIn the Status bar, click the Mercurial Branch widget to open the Branches popup. Select the branch or bookmark to which you want to switch and in the menu that opens, click Update.
Branches occur if lines of development diverge. The term "branch" may thus refer to a "diverged line of development". For Mercurial, a "line of development" is a linear sequence of consecutive changesets. Combining a line of development into an existing one is called merging. Creating a branch.
the only way to do this is to delete it, or to hope they see the final merge commit and understand that the branch is closed to further development.
You can use the hg identify
command with the -b
for branch option:
C:\Some\Repository> hg identify -b
default
hg branch
. I suggest at least reading hg help
once :^)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With