Debian Codegraph @

doc/man/hg-parents.1

raw
1 .TH HG PARENTS "" "" ""
2 .SH NAME
3 hg parents \- show the parents of the working directory or revision (DEPRECATED)
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg parents [\-r REV] [FILE]
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Print the working directory\(aqs parent revisions. If a revision is
16 given via \-r/\-\-rev, the parent of that revision will be printed.
17 If a file argument is given, the revision in which the file was
18 last changed (before the working directory revision or the
19 argument to \-\-rev if given) is printed.
20 .sp
21 This command is equivalent to:
22 .sp
23 .nf
24 .ft C
25 hg log \-r "p1()+p2()" or
26 hg log \-r "p1(REV)+p2(REV)" or
27 hg log \-r "max(::p1() and file(FILE))+max(::p2() and file(FILE))" or
28 hg log \-r "max(::p1(REV) and file(FILE))+max(::p2(REV) and file(FILE))"
29 .ft P
30 .fi
31 .sp
32 See \%\fBhg summary\fP\: and \%\fBhg help revsets\fP\: for related information.
33 .sp
34 Returns 0 on success.
35 .SH OPTIONS
36 .INDENT 0.0
37 .TP
38 .BI \-r, \-\-rev \ <REV>
39 .
40 show parents of the specified revision
41 .TP
42 .BI \-\-style \ <STYLE>
43 .
44 display using template map file (DEPRECATED)
45 .TP
46 .BI \-T, \-\-template \ <TEMPLATE>
47 .
48 display with template
49 .UNINDENT
50 .\" Generated by docutils manpage writer.
51 .\"
52 .