# HG changeset patch # User Steve Losh # Date 1247571052 14400 # Node ID d8e5a4fbdcb4b416bc976cc6d90b9f107f487b46 # Parent 257f4349747c084abb0c0b170183041cc96537b7 Edit the documentation slightly. diff -r 257f4349747c -r d8e5a4fbdcb4 README --- a/README Tue Jul 14 07:28:42 2009 -0400 +++ b/README Tue Jul 14 07:30:52 2009 -0400 @@ -54,9 +54,9 @@ * **bookmark:** the current bookmark * **branch:** the current branch -* **root:** the full path to the root of the current repository, with a trailing slash. +* **root:** the full path to the root of the current repository, with 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 +* **status:** `!` if the repository has any changed/added/removed files, otherwise `?` if it has any untracked (but not ignored) files, otherwise nothing. Putting it in a Bash Prompt --------------------------- diff -r 257f4349747c -r d8e5a4fbdcb4 prompt.py --- a/prompt.py Tue Jul 14 07:28:42 2009 -0400 +++ b/prompt.py Tue Jul 14 07:30:52 2009 -0400 @@ -49,7 +49,7 @@ - bookmark: the current bookmark - branch: the current branch - root: the full path to the root of the current repository, with a - trailing slash. + 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'.