ee24c2fdbfba

Add documentation for {rev} and {rev|merge}.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 23 Jul 2009 03:15:24 -0400
parents c9a86b8b497c
children 4fffee461422
branches/tags (none)
files README prompt.py

Changes

--- a/README	Thu Jul 23 03:13:55 2009 -0400
+++ b/README	Thu Jul 23 03:15:24 2009 -0400
@@ -59,6 +59,8 @@
 
 * **bookmark:** the current bookmark (requires the [bookmarks]() extension)
 * **branch:** the current branch
+* **rev:** the repository-local changeset number of the current parent.  This does not take into account merges (which have two parents) -- see the `rev|merge` keyword for that.
+* **rev|merge:** the repository-local changeset number of the changeset you're merging with if you're currently merging, otherwise nothing
 * **root:** the full path to the root of the current repository, without a trailing slash
 * **root|basename:** the directory name of the root of the current repository.  For example, if the repository is in `/home/u/myrepo` then this keyword would expand to `myrepo`.
 * **status:**  `!` if the repository has any changed/added/removed files, otherwise `?` if it has any untracked (but not ignored) files, otherwise nothing.
--- a/prompt.py	Thu Jul 23 03:13:55 2009 -0400
+++ b/prompt.py	Thu Jul 23 03:15:24 2009 -0400
@@ -66,6 +66,11 @@
     
     - bookmark: the current bookmark (requires the bookmarks extension)
     - branch: the current branch
+    - rev: the repository-local changeset number of the current parent.  This
+        does not take into account merges (which have two parents) -- see the
+        'rev|merge' keyword for that.
+    - rev|merge: the repository-local changeset number of the changeset
+        you're merging with if you're currently merging, otherwise nothing
     - root: the full path to the root of the current repository, without a 
         trailing slash
     - root|basename: the directory name of the root of the current