HG(PARENTS)

πŸ’– HG(PARENTS) πŸ’–

okay bestie, welcome to the HG(PARENTS) page β€” this is the manual for the hg parents command, and yes it's DEPRECATED, we'll get to that, don't panic 🫢


✨ NAME ✨

hg parents β€” show the parents of the working directory or revision (DEPRECATED) πŸ’€


🌸 SYNOPSIS 🌸

hg parents [-r REV] [FILE]

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this prints the parent revisions of your working directory. Like, who's your repo's mom and dad, fr fr.

If you hand it a revision with -r/--rev, then it prints the parent of that revision instead. And if you give it a file argument, it prints the revision where that file was last changed β€” specifically, before the working directory revision, or before whatever you passed to --rev if you passed one.

This command is literally equivalent to:

hg log -r "p1()+p2()" or
hg log -r "p1(REV)+p2(REV)" or
hg log -r "max(::p1() and file(FILE))+max(::p2() and file(FILE))" or
hg log -r "max(::p1(REV) and file(FILE))+max(::p2(REV) and file(FILE))"

no cap, that's exactly it πŸ‘‘

For related info, go peek at hg summary and hg help revsets β€” those are the vibes-adjacent pages 🌈

Returns 0 on success. slay ✨


πŸ’… OPTIONS πŸ’…

  • -r, --rev <REV> β€” show parents of the specified revision πŸ‘€
  • --style <STYLE> β€” display using template map file (DEPRECATED) πŸ’€
  • -T, --template <TEMPLATE> β€” display with template πŸŽ€

okay that's the whole page, we ate and left no crumbs πŸ“ stay iconic, and remember: this manual page is HG(PARENTS), dated and versioned right there in the footer, and your girl is signing off πŸ’œπŸ§šβœ¨