# HG changeset patch # User Steve Losh # Date 1257713718 18000 # Node ID 342f1099aabc960b0bc2d09ccb79a8a9fbeca022 # Parent 272a76c50002dfe2d13eb0f421eac48edee91806 Add documentation for the {tip} keyword. diff -r 272a76c50002 -r 342f1099aabc README --- a/README Sun Nov 08 15:52:58 2009 -0500 +++ b/README Sun Nov 08 15:55:18 2009 -0500 @@ -78,6 +78,9 @@ * **tags:** the tags of the current parent, separated by a space * **tags|SEP:** the tags of the current parent, separated by `SEP` * **task:** the current task (requires the [tasks][] extension) +* **tip:** the repository-local changeset number of the current tip +* **tip|node:** the (full) changeset hash of the current tip +* **tip|node|short:** a short form of the changeset hash of the current tip * **update:** `^` if the current parent is not the tip of the current branch, otherwise nothing. In effect, this lets you see if running `hg update` would do something. [bookmarks]: http://mercurial.selenic.com/wiki/BookmarksExtension diff -r 272a76c50002 -r 342f1099aabc prompt.py --- a/prompt.py Sun Nov 08 15:52:58 2009 -0500 +++ b/prompt.py Sun Nov 08 15:55:18 2009 -0500 @@ -98,6 +98,9 @@ - tags: the tags of the current parent, separated by a space - tags|SEP: the tags of the current parent, separated by SEP - task: the current task (requires the tasks extension) + - tip: the repository-local changeset number of the current tip + - tip|node: the (full) changeset hash of the current tip + - tip|node|short: a short form of the changeset hash of the current tip - update: "^" if the current parent is not the tip of the current branch, otherwise nothing. In effect, this lets you see if running 'hg update' would do something.