.TH HG PARENTS "" "" "" .SH NAME hg parents \- show the parents of the working directory or revision (DEPRECATED) .\" Man page generated from reStructuredText. . .SH SYNOPSIS .sp .nf .ft C hg parents [\-r REV] [FILE] .ft P .fi .SH DESCRIPTION .sp Print the working directory\(aqs 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. .sp This command is equivalent to: .sp .nf .ft C 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))" .ft P .fi .sp See \%\fBhg summary\fP\: and \%\fBhg help revsets\fP\: for related information. .sp Returns 0 on success. .SH OPTIONS .INDENT 0.0 .TP .BI \-r, \-\-rev \ . show parents of the specified revision .TP .BI \-\-style \