| 1 |
.TH HG BOOKMARKS "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg bookmarks \- create a new bookmark or list existing bookmarks |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg bookmarks [OPTIONS]... [NAME]... |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
Bookmarks are labels on changesets to help track lines of development. |
| 16 |
Bookmarks are unversioned and can be moved, renamed and deleted. |
| 17 |
Deleting or moving a bookmark has no effect on the associated changesets. |
| 18 |
.sp |
| 19 |
Creating or updating to a bookmark causes it to be marked as \(aqactive\(aq. |
| 20 |
The active bookmark is indicated with a \(aq*\(aq. |
| 21 |
When a commit is made, the active bookmark will advance to the new commit. |
| 22 |
A plain \%\fBhg update\fP\: will also advance an active bookmark, if possible. |
| 23 |
Updating away from a bookmark will cause it to be deactivated. |
| 24 |
.sp |
| 25 |
Bookmarks can be pushed and pulled between repositories (see |
| 26 |
\%\fBhg help push\fP\: and \%\fBhg help pull\fP\:). If a shared bookmark has |
| 27 |
diverged, a new \(aqdivergent bookmark\(aq of the form \%\(aqname@path\:\(aq will |
| 28 |
be created. Using \%\fBhg merge\fP\: will resolve the divergence. |
| 29 |
.sp |
| 30 |
Specifying bookmark as \(aq.\(aq to \-m/\-d/\-l options is equivalent to specifying |
| 31 |
the active bookmark\(aqs name. |
| 32 |
.sp |
| 33 |
A bookmark named \(aq@\(aq has the special property that \%\fBhg clone\fP\: will |
| 34 |
check it out by default if it exists. |
| 35 |
.sp |
| 36 |
Template: |
| 37 |
.sp |
| 38 |
The following keywords are supported in addition to the common template |
| 39 |
keywords and functions such as \fB{bookmark}\fP. See also |
| 40 |
\%\fBhg help templates\fP\:. |
| 41 |
.INDENT 0.0 |
| 42 |
.TP |
| 43 |
.B active |
| 44 |
. |
| 45 |
Boolean. True if the bookmark is active. |
| 46 |
.UNINDENT |
| 47 |
.sp |
| 48 |
Examples: |
| 49 |
.INDENT 0.0 |
| 50 |
.IP \(bu 2 |
| 51 |
. |
| 52 |
create an active bookmark for a new line of development: |
| 53 |
.sp |
| 54 |
.nf |
| 55 |
.ft C |
| 56 |
hg book new\-feature |
| 57 |
.ft P |
| 58 |
.fi |
| 59 |
.IP \(bu 2 |
| 60 |
. |
| 61 |
create an inactive bookmark as a place marker: |
| 62 |
.sp |
| 63 |
.nf |
| 64 |
.ft C |
| 65 |
hg book \-i reviewed |
| 66 |
.ft P |
| 67 |
.fi |
| 68 |
.IP \(bu 2 |
| 69 |
. |
| 70 |
create an inactive bookmark on another changeset: |
| 71 |
.sp |
| 72 |
.nf |
| 73 |
.ft C |
| 74 |
hg book \-r .^ tested |
| 75 |
.ft P |
| 76 |
.fi |
| 77 |
.IP \(bu 2 |
| 78 |
. |
| 79 |
rename bookmark turkey to dinner: |
| 80 |
.sp |
| 81 |
.nf |
| 82 |
.ft C |
| 83 |
hg book \-m turkey dinner |
| 84 |
.ft P |
| 85 |
.fi |
| 86 |
.IP \(bu 2 |
| 87 |
. |
| 88 |
move the \(aq@\(aq bookmark from another branch: |
| 89 |
.sp |
| 90 |
.nf |
| 91 |
.ft C |
| 92 |
hg book \-f @ |
| 93 |
.ft P |
| 94 |
.fi |
| 95 |
.IP \(bu 2 |
| 96 |
. |
| 97 |
print only the active bookmark name: |
| 98 |
.sp |
| 99 |
.nf |
| 100 |
.ft C |
| 101 |
hg book \-ql . |
| 102 |
.ft P |
| 103 |
.fi |
| 104 |
.UNINDENT |
| 105 |
.SH OPTIONS |
| 106 |
.INDENT 0.0 |
| 107 |
.TP |
| 108 |
.B \-f, \-\-force |
| 109 |
. |
| 110 |
force |
| 111 |
.TP |
| 112 |
.BI \-r, \-\-rev \ <REV> |
| 113 |
. |
| 114 |
revision for bookmark action |
| 115 |
.TP |
| 116 |
.B \-d, \-\-delete |
| 117 |
. |
| 118 |
delete a given bookmark |
| 119 |
.TP |
| 120 |
.BI \-m, \-\-rename \ <OLD> |
| 121 |
. |
| 122 |
rename a given bookmark |
| 123 |
.TP |
| 124 |
.B \-i, \-\-inactive |
| 125 |
. |
| 126 |
mark a bookmark inactive |
| 127 |
.TP |
| 128 |
.B \-l, \-\-list |
| 129 |
. |
| 130 |
list existing bookmarks |
| 131 |
.TP |
| 132 |
.BI \-T, \-\-template \ <TEMPLATE> |
| 133 |
. |
| 134 |
display with template |
| 135 |
.UNINDENT |
| 136 |
.SH ALIASES |
| 137 |
.sp |
| 138 |
.nf |
| 139 |
.ft C |
| 140 |
bookmark |
| 141 |
.ft P |
| 142 |
.fi |
| 143 |
.\" Generated by docutils manpage writer. |
| 144 |
.\" |
| 145 |
. |