# HG changeset patch # User Steve Losh # Date 1254061621 14400 # Node ID 4786ae21ac3d00b2a5f0e45313415262560127b9 # Parent b74891ea0325851711abec742caf100409e3be3b Add documentation for the new filters. diff -r b74891ea0325 -r 4786ae21ac3d README --- a/README Sun Sep 27 10:21:45 2009 -0400 +++ b/README Sun Sep 27 10:27:01 2009 -0400 @@ -68,6 +68,9 @@ * **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. +* **status|modified:** `!` if the current repository contains files that have been modified, added, removed, or deleted, otherwise nothing. +* **status|unknown:** `?` if the current repository contains untracked files, otherwise nothing. +* **status|modified|unknown:** `!` if the current repository contains files that have been modified, added, removed, or deleted, *and* `?` if it contains untracked (and not ignored) files, otherwise nothing. * **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) diff -r b74891ea0325 -r 4786ae21ac3d prompt.py --- a/prompt.py Sun Sep 27 10:21:45 2009 -0400 +++ b/prompt.py Sun Sep 27 10:27:01 2009 -0400 @@ -84,6 +84,13 @@ - status: "!" if the current repository contains files that have been modified, added, removed, or deleted, otherwise "?" if it contains untracked (and not ignored) files, otherwise nothing. + - status|modified: "!" if the current repository contains files that + have been modified, added, removed, or deleted, otherwise nothing. + - status|unknown: "?" if the current repository contains untracked + files, otherwise nothing. + - status|modified|unknown: "!" if the current repository contains files + that have been modified, added, removed, or deleted, and "?" if it + contains untracked (and not ignored) files, otherwise nothing. - 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)