| 1 |
.TH HG IDENTIFY "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg identify \- identify the working directory or specified revision |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg identify [\-nibtB] [\-r REV] [SOURCE] |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
Print a summary identifying the repository state at REV using one or |
| 16 |
two parent hash identifiers, followed by a "+" if the working |
| 17 |
directory has uncommitted changes, the branch name (if not default), |
| 18 |
a list of tags, and a list of bookmarks. |
| 19 |
.sp |
| 20 |
When REV is not given, print a summary of the current state of the |
| 21 |
repository including the working directory. Specify \-r. to get information |
| 22 |
of the working directory parent without scanning uncommitted changes. |
| 23 |
.sp |
| 24 |
Specifying a path to a repository root or Mercurial bundle will |
| 25 |
cause lookup to operate on that repository/bundle. |
| 26 |
.sp |
| 27 |
Template: |
| 28 |
.sp |
| 29 |
The following keywords are supported in addition to the common template |
| 30 |
keywords and functions. See also \%\fBhg help templates\fP\:. |
| 31 |
.INDENT 0.0 |
| 32 |
.TP |
| 33 |
.B dirty |
| 34 |
. |
| 35 |
String. Character \fB+\fP denoting if the working directory has |
| 36 |
uncommitted changes. |
| 37 |
.TP |
| 38 |
.B id |
| 39 |
. |
| 40 |
String. One or two nodes, optionally followed by \fB+\fP. |
| 41 |
.TP |
| 42 |
.B parents |
| 43 |
. |
| 44 |
List of strings. Parent nodes of the changeset. |
| 45 |
.UNINDENT |
| 46 |
.sp |
| 47 |
Examples: |
| 48 |
.INDENT 0.0 |
| 49 |
.IP \(bu 2 |
| 50 |
. |
| 51 |
generate a build identifier for the working directory: |
| 52 |
.sp |
| 53 |
.nf |
| 54 |
.ft C |
| 55 |
hg id \-\-id > build\-id.dat |
| 56 |
.ft P |
| 57 |
.fi |
| 58 |
.IP \(bu 2 |
| 59 |
. |
| 60 |
find the revision corresponding to a tag: |
| 61 |
.sp |
| 62 |
.nf |
| 63 |
.ft C |
| 64 |
hg id \-n \-r 1.3 |
| 65 |
.ft P |
| 66 |
.fi |
| 67 |
.IP \(bu 2 |
| 68 |
. |
| 69 |
check the most recent revision of a remote repository: |
| 70 |
.sp |
| 71 |
.nf |
| 72 |
.ft C |
| 73 |
hg id \-r tip https://www.mercurial\-scm.org/repo/hg/ |
| 74 |
.ft P |
| 75 |
.fi |
| 76 |
.UNINDENT |
| 77 |
.sp |
| 78 |
See \%\fBhg log\fP\: for generating more information about specific revisions, |
| 79 |
including full hash identifiers. |
| 80 |
.sp |
| 81 |
Returns 0 if successful. |
| 82 |
.SH OPTIONS |
| 83 |
.INDENT 0.0 |
| 84 |
.TP |
| 85 |
.BI \-r, \-\-rev \ <REV> |
| 86 |
. |
| 87 |
identify the specified revision |
| 88 |
.TP |
| 89 |
.B \-n, \-\-num |
| 90 |
. |
| 91 |
show local revision number |
| 92 |
.TP |
| 93 |
.B \-i, \-\-id |
| 94 |
. |
| 95 |
show global revision id |
| 96 |
.TP |
| 97 |
.B \-b, \-\-branch |
| 98 |
. |
| 99 |
show branch |
| 100 |
.TP |
| 101 |
.B \-t, \-\-tags |
| 102 |
. |
| 103 |
show tags |
| 104 |
.TP |
| 105 |
.B \-B, \-\-bookmarks |
| 106 |
. |
| 107 |
show bookmarks |
| 108 |
.TP |
| 109 |
.BI \-e, \-\-ssh \ <CMD> |
| 110 |
. |
| 111 |
specify ssh command to use |
| 112 |
.TP |
| 113 |
.BI \-\-remotecmd \ <CMD> |
| 114 |
. |
| 115 |
specify hg command to run on the remote side |
| 116 |
.TP |
| 117 |
.B \-\-insecure |
| 118 |
. |
| 119 |
do not verify server certificate (ignoring web.cacerts config) |
| 120 |
.TP |
| 121 |
.BI \-T, \-\-template \ <TEMPLATE> |
| 122 |
. |
| 123 |
display with template |
| 124 |
.UNINDENT |
| 125 |
.SH ALIASES |
| 126 |
.sp |
| 127 |
.nf |
| 128 |
.ft C |
| 129 |
id |
| 130 |
.ft P |
| 131 |
.fi |
| 132 |
.\" Generated by docutils manpage writer. |
| 133 |
.\" |
| 134 |
. |