Add documentation for the {tip} keyword.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 08 Nov 2009 15:55:18 -0500 |
parents |
272a76c50002
|
children |
fdde523e86f1
|
branches/tags |
(none) |
files |
README prompt.py |
Changes
--- 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
--- 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.