Mercurial > hg
comparison hgext/bookmarks.py @ 7257:7fb0e130cf14
bookmarks: Improve documentation
author | Joel Rosdahl <joel@rosdahl.net> |
---|---|
date | Sat, 25 Oct 2008 19:05:52 +0200 |
parents | df800e004077 |
children | 9bd051efbdd6 |
comparison
equal
deleted
inserted
replaced
7256:df800e004077 | 7257:7fb0e130cf14 |
---|---|
65 Bookmarks are pointers to certain commits that move when | 65 Bookmarks are pointers to certain commits that move when |
66 commiting. Bookmarks are local. They can be renamed, copied and | 66 commiting. Bookmarks are local. They can be renamed, copied and |
67 deleted. It is possible to use bookmark names in 'hg merge' and 'hg | 67 deleted. It is possible to use bookmark names in 'hg merge' and 'hg |
68 update' to update to a given bookmark. | 68 update' to update to a given bookmark. |
69 | 69 |
70 You can use 'hg bookmark [NAME]' to set a bookmark on the current tip | 70 You can use 'hg bookmark NAME' to set a bookmark on the current |
71 with the given name. If you specify a second [NAME] the bookmark is | 71 tip with the given name. If you specify a revision using -r REV |
72 set to the bookmark that has that name. You can also pass revision | 72 (where REV may be an existing bookmark), the bookmark is set to |
73 identifiers to set bookmarks too. | 73 that revision. |
74 ''' | 74 ''' |
75 hexfn = ui.debugflag and hex or short | 75 hexfn = ui.debugflag and hex or short |
76 marks = parse(repo) | 76 marks = parse(repo) |
77 cur = repo.changectx('.').node() | 77 cur = repo.changectx('.').node() |
78 | 78 |