File: hg-parents.1

package info (click to toggle)
mercurial 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,080 kB
  • sloc: python: 208,589; ansic: 56,460; tcl: 3,715; sh: 1,839; lisp: 1,483; cpp: 864; makefile: 769; javascript: 649; xml: 36
file content (52 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.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 \ <REV>
.
show parents of the specified revision
.TP
.BI \-\-style \ <STYLE>
.
display using template map file (DEPRECATED)
.TP
.BI \-T,  \-\-template \ <TEMPLATE>
.
display with template
.UNINDENT
.\" Generated by docutils manpage writer.
.\" 
.