From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 825 invoked from network); 6 Apr 2009 17:46:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Apr 2009 17:46:47 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86745 invoked from network); 6 Apr 2009 17:46:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Apr 2009 17:46:23 -0000 Received: (qmail 525 invoked by alias); 6 Apr 2009 17:46:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26817 Received: (qmail 402 invoked from network); 6 Apr 2009 17:45:57 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 Apr 2009 17:45:57 -0000 Received: from smtprelay11.ispgateway.de (smtprelay11.ispgateway.de [80.67.29.28]) by bifrost.dotsrc.org (Postfix) with ESMTP id 898B982D4B6C for ; Mon, 6 Apr 2009 19:45:54 +0200 (CEST) Received: from [89.245.57.95] (helo=fsst.voodoo.lan) by smtprelay11.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1LqstL-0004Mp-DS for zsh-workers@sunsite.dk; Mon, 06 Apr 2009 19:45:51 +0200 Received: from hawk by fsst.voodoo.lan with local (Exim 4.69) (envelope-from ) id 1Lqst9-0005Px-6e for zsh-workers@sunsite.dk; Mon, 06 Apr 2009 19:45:39 +0200 From: Frank Terbeck To: zsh-workers@sunsite.dk Subject: PATCH: (4/5) contrib.yo: updates for get-revision, %i and %m Date: Mon, 6 Apr 2009 19:45:37 +0200 Message-Id: <1239039938-20782-5-git-send-email-ft@bewatermyfriend.org> X-Mailer: git-send-email 1.6.2.1.136.g8e24 In-Reply-To: <1239039938-20782-1-git-send-email-ft@bewatermyfriend.org> References: <1239039938-20782-1-git-send-email-ft@bewatermyfriend.org> X-Df-Sender: 430444 X-Virus-Scanned: ClamAV 0.92.1/9207/Mon Apr 6 13:58:21 2009 on bifrost X-Virus-Status: Clean --- Doc/Zsh/contrib.yo | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 2eb26ab..7412f81 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -579,6 +579,17 @@ the default is to use the not-that-simple code, which is potentially a lot slower but might be more accurate in all possible cases. This style is only used by the tt(bzr) backend. ) +kindex(get-revision) +item(tt(get-revision))( +If set to true, vcs_info goes the extra mile to figure out the revision of +a repository's work tree (currently for the tt(git) and tt(hg) backends, +where this kind of information is not always vital). For tt(git), the +hash value of the currently checked out commit is available via the tt(%i) +expansion. With tt(hg), the local revision number is available via tt(%i) +and the corresponding global hash is available via tt(%m). +If this style is set in the tt(hg) context, the backend supports the +branchformat style. +) kindex(use-prompt-escapes) item(tt(use-prompt-escapes))( Determines if we assume that the assembled @@ -604,6 +615,7 @@ sitem(tt(unstagedstr))((string: "U")) sitem(tt(command))((empty string)) sitem(tt(use-server))(false) sitem(tt(use-simple))(false) +sitem(tt(get-revision))(false) sitem(tt(use-prompt-escapes))(true) endsitem() @@ -615,6 +627,7 @@ sitem(tt(%s))(The vcs in use (git, hg, svn etc.)) sitem(tt(%b))(Information about the current branch.) sitem(tt(%a))(An identifier, that describes the action. Only makes sense in actionformats.) +sitem(tt(%i))(The current revision number or identifier.) sitem(tt(%c))(The string from the var(stagedstr) style if there are staged changes in the repository.) sitem(tt(%u))(The string from the var(unstagedstr) style if there are unstaged @@ -624,6 +637,10 @@ sitem(tt(%r))(repository name. If tt(%R) is var(/foo/bar/repoXY), tt(%r) is var(repoXY).) sitem(tt(%S))(subdirectory within a repository. If tt($PWD) is var(/foo/bar/reposXY/beer/tasty), tt(%S) is var(beer/tasty).) +sitem(tt(%m))(A "misc" replacement. It is at the discretion of the backend +to decide what this replacement expands to. It is currently used only by +the tt(hg) backend. The hg backend replaces tt(%m) with the global hash +value of the current revision.) endsitem() In tt(branchformat) these replacements are done: -- 1.6.2.1.136.g8e24