logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hg parents - show the parents of the working directory or revision (DEPRECATED)

Description

       Print  the  working directory's parent revisions. If a revision is given via -r/--rev, the parent of that
       revision will be printed.  If a file argument is given, the revision in which the file was  last  changed
       (before the working directory revision or the argument to --rev if given) is printed.

       This command is 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))"

       See hgsummary and hghelprevsets for related information.

       Returns 0 on success.

Name

       hg parents - show the parents of the working directory or revision (DEPRECATED)

Options

-r,--rev<REV>
              show parents of the specified revision

       --style<STYLE>
              display using template map file (DEPRECATED)

       -T,--template<TEMPLATE>
              display with template

                                                                                                     HG(PARENTS)

Synopsis

       hg parents [-r REV] [FILE]

See Also