HG(PHASE)
π HG(PHASE) π
okay bestie, welcome to hg phase β the manual page for the hg phase command, and yes it's giving main character energy because phases are literally the whole personality of your repo. let's get into it π«Ά
β¨ NAME β¨
hg phase β set or show the current phase name. that's it. that's the job. π
π SYNOPSIS π
hg phase [-p|-d|-s] [-f] [-r] [REV...]
look at her. so compact. so powerful. π
πΈ DESCRIPTION πΈ
so like, when you run it with no argument at all, it just shows you the phase name of the current revision(s). no changes, just vibes. a little peek. π
when you give it one of -p/--public, -d/--draft or -s/--secret, that's when it actually changes the phase value of the revisions you specified. slay. π
BUT β and this is the important part, no cap β unless -f/--force is specified, hg phase won't move changesets from a lower phase to a higher phase. it's protective like that. π‘οΈ the phases are ordered like this:
public < draft < secret
so public is the chillest, secret is the most locked-down, and the hierarchy goes left to right, lowkey to highkey. π₯
it returns 0 on success, and 1 if some phases could not be changed. simple as. π
(for more information about the phases concept, see hg help phases.) β yes, there's a whole other page for the lore, go read it, iykyk πβ¨
π OPTIONS π
-p,--publicβ set changeset phase to public. the most out-in-the-open phase, everybody can see her π-d,--draftβ set changeset phase to draft. the middle child, in progress, still cooking π§-s,--secretβ set changeset phase to secret. locked in the vault, nobody's supposed to see this one π-f,--forceβ allow to move boundary backward. this is the "i said what i said" flag, it lets you push past the normal guardrails π€-r,--rev <REV[+]>β target revision. pick which revision(s) you're talking to π―[+]marked option can be specified multiple times β so yes bestie, you can stack it, go off π
β a lil sign-off β
this was the hg phase page from the HG(PHASE) manual β footer says HG(PHASE) too, so it's bookended, iconic, symmetrical, we love to see it. now go forth and phase responsibly, mwah πβ¨π
π¦ 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