Mercurial > hg
comparison hgext/bookmarks.py @ 7984:5c61c75c2384
bookmarks: word-wrap help texts at 70 characters
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 04 Apr 2009 23:15:10 +0200 |
parents | b6b9065c20b3 |
children | 6dcf425cc2a6 |
comparison
equal
deleted
inserted
replaced
7983:7b813bdbd5d0 | 7984:5c61c75c2384 |
---|---|
13 bookmark is forwarded to the new changeset. | 13 bookmark is forwarded to the new changeset. |
14 | 14 |
15 It is possible to use bookmark names in every revision lookup (e.g. hg | 15 It is possible to use bookmark names in every revision lookup (e.g. hg |
16 merge, hg update). | 16 merge, hg update). |
17 | 17 |
18 The bookmark extension offers the possiblity to have a more git-like experience | 18 The bookmark extension offers the possiblity to have a more git-like |
19 by adding the following configuration option to your .hgrc: | 19 experience by adding the following configuration option to your .hgrc: |
20 | 20 |
21 [bookmarks] | 21 [bookmarks] |
22 track.current = True | 22 track.current = True |
23 | 23 |
24 This will cause bookmarks to track the bookmark that you are currently on, and | 24 This will cause bookmarks to track the bookmark that you are currently |
25 just updates it. This is similar to git's approach of branching. | 25 on, and just updates it. This is similar to git's approach of |
26 branching. | |
26 ''' | 27 ''' |
27 | 28 |
28 from mercurial.i18n import _ | 29 from mercurial.i18n import _ |
29 from mercurial.node import nullid, nullrev, hex, short | 30 from mercurial.node import nullid, nullrev, hex, short |
30 from mercurial import util, commands, localrepo, repair, extensions | 31 from mercurial import util, commands, localrepo, repair, extensions |
113 def bookmark(ui, repo, mark=None, rev=None, force=False, delete=False, rename=None): | 114 def bookmark(ui, repo, mark=None, rev=None, force=False, delete=False, rename=None): |
114 '''mercurial bookmarks | 115 '''mercurial bookmarks |
115 | 116 |
116 Bookmarks are pointers to certain commits that move when | 117 Bookmarks are pointers to certain commits that move when |
117 commiting. Bookmarks are local. They can be renamed, copied and | 118 commiting. Bookmarks are local. They can be renamed, copied and |
118 deleted. It is possible to use bookmark names in 'hg merge' and 'hg | 119 deleted. It is possible to use bookmark names in 'hg merge' and |
119 update' to update to a given bookmark. | 120 'hg update' to update to a given bookmark. |
120 | 121 |
121 You can use 'hg bookmark NAME' to set a bookmark on the current | 122 You can use 'hg bookmark NAME' to set a bookmark on the current |
122 tip with the given name. If you specify a revision using -r REV | 123 tip with the given name. If you specify a revision using -r REV |
123 (where REV may be an existing bookmark), the bookmark is set to | 124 (where REV may be an existing bookmark), the bookmark is set to |
124 that revision. | 125 that revision. |