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 πŸŽ€βœ¨πŸ’œ