HG(HEADS)
β¨ HG(HEADS) β aka the hg heads glow-up β¨
okay bestie, sit down, grab a boba π§ because we're learning about hg heads, and honestly? it's giving "where is everybody actually working" energy and you're gonna be obsessed.
πΈ NAME πΈ
hg heads β show branch heads π (yes that's the whole name, she's simple, she's iconic)
π¦ SYNOPSIS π¦
hg heads [-ct] [-r STARTREV] [REV]...
literally that's it. that's the whole vibe. π
π DESCRIPTION π
so when you run this with no arguments at all? she shows you every single open branch head in the repository. periodt.
and what even is a branch head, you ask? okay so β branch heads are changesets that have no descendants on the same branch. no children, nobody coming after them, they're the end of the line on their little branch. π
and the way that matters is: these are where development generally takes place, and they're the usual targets for update and merge operations. so like, they're the main characters. the places stuff actually happens. π
if you give her one or more REVs? then she only shows you the open branch heads on the branches associated with those specified changesets. which means β and this is the cute part β you can run:
hg heads .
to see the heads on the currently checked-out branch. so handy. so slay. π«Ά
if you pass -c / --closed, she'll also show branch heads that are marked closed (peep hg commit --close-branch for how that marking happens) π
if you pass STARTREV, then only the heads that are descendants of STARTREV get displayed. filter it, bestie. β¨
and if you pass -t / --topo, the named branch mechanics get completely ignored β she'll only show you topological heads, which are changesets with no children. pure structure, no branch drama. π§
lowkey important: this returns0if matching heads are found, and1if not. exit codes are the vibe check. don't ignore them. π
π OPTIONS π
-r,--rev <STARTREV>β show only heads which are descendants of STARTREV π-t,--topoβ show topological heads only π¦-a,--activeβ show active branchheads only (DEPRECATED) β οΈ-c,--closedβ show normal and closed branch heads π--style <STYLE>β display using template map file (DEPRECATED) β οΈ-T,--template <TEMPLATE>β display with template β¨
not one but two deprecated flags in here bestie,-a/--activeand--style. they're still listed, they still exist, but the manual is literally telling you they're deprecated. read the room. π
and that's the whole page!! no cap, every single line accounted for. π
sign-off time π β this little love letter lives under the heading HG(HEADS) in the manual, and the footer at the very bottom is just... HG(HEADS) again, no version number, no date, nothing. she said "mysterious." we respect it. π
anyway go check your heads, bestie, your branches are waiting for you. bye!! π πΈβ¨
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms