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 ππ§β¨
π¦ 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