vcs_info
Check-in [38de85a4a4]
Not logged in
Public Repositories
mwm's Repositories

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:One last round of formatting cleanup, fix a few more typos.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 38de85a4a43dd5bff303260949efd18b99933549
User & Date: mwm 2011-02-19 07:57:31.000
Context
2011-02-19
08:16
Get the trunk name right if you have tags check-in: 4b3b8f3599 user: mwm tags: r0.1, trunk
07:57
One last round of formatting cleanup, fix a few more typos. check-in: 38de85a4a4 user: mwm tags: trunk
07:55
Finish instruction (hah) on running on 4.3.10, more formatting cleanup. check-in: 0372c81c03 user: mwm tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to README.wiki.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h2>Installation</h2>

<b>Note:</b> This uses the vcs_info from the zshell version 4.3.11. If
you are running 4.3.10, you can copy the vcs_info software
from the 4.3.11 distribution of zsh and install that in place of what
was shipped with 4.3.10.

The VCS_INFO*fossil files should be copied to
<tt><var>prefix</var>/share/zsh/<var>version</var>/functions/VCS_Info/Backends</tt>.
<prefix> is probably either <tt>/usr/local</tt> or <tt>/usr</tt>,
depending on your system.  <var>version</var> can be found by running
<tt>zsh --version</tt>.

Then, as root in the <tt><var>prefix</var>/share/zsh/<var>version</var>>/functions</tt>
directory, run:

<pre><tt>setopt extendedglob nomark_dirs
zcompile -U -M VCS_Info.zwc VCS_Info/*~*.zwc(^/)
</tt></pre>

<h2>Usage</h2>

Usage is pretty much the same as it is for any other backend for
vcs_info - see the zsh docs for information.

The displayed revision (<tt>%i</tt> or <tt>%r</tt> in
<var>branchformat</var>) is the first 10 digits of the artifact id by
default. You can change this by setting the <var>fsrevformat</var>
variable like so:

<tt>zstyle ':vcs_info:fossil:*' fsrevformat '%.<var>max</var>h'</tt>

<tt>h</tt> is the only valid format character. Change <var>max</var>
to the number of digits you want to display. As state, the default
format is <tt>%.10h</tt>. Changing the format to <tt>'%h'</tt> will
print the entire artifact id (not recommended).  Open a ticket (see
below) if you think this should change.

The misc field (<tt>%m</tt>) is currently set to the
repository. Suggestions for alternatives are welcome (data from the
<tt>fossil status</tt> command preferred).


|
|
|
|



|



|
















|

|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h2>Installation</h2>

<b>Note:</b> This uses the vcs_info from zshell version 4.3.11. If you
are running 4.3.10, you can copy the vcs_info software from the 4.3.11
distribution of zsh and install that in place of what was shipped with
4.3.10.

The VCS_INFO*fossil files should be copied to
<tt><var>prefix</var>/share/zsh/<var>version</var>/functions/VCS_Info/Backends</tt>.
<var>prefix</var> is probably either <tt>/usr/local</tt> or <tt>/usr</tt>,
depending on your system.  <var>version</var> can be found by running
<tt>zsh --version</tt>.

Then, as root in the <tt><var>prefix</var>/share/zsh/<var>version</var>/functions</tt>
directory, run:

<pre><tt>setopt extendedglob nomark_dirs
zcompile -U -M VCS_Info.zwc VCS_Info/*~*.zwc(^/)
</tt></pre>

<h2>Usage</h2>

Usage is pretty much the same as it is for any other backend for
vcs_info - see the zsh docs for information.

The displayed revision (<tt>%i</tt> or <tt>%r</tt> in
<var>branchformat</var>) is the first 10 digits of the artifact id by
default. You can change this by setting the <var>fsrevformat</var>
variable like so:

<tt>zstyle ':vcs_info:fossil:*' fsrevformat '%.<var><max></var>h'</tt>

<tt>h</tt> is the only valid format character. Change <var><max></var>
to the number of digits you want to display. As stated, the default
format is <tt>%.10h</tt>. Changing the format to <tt>'%h'</tt> will
print the entire artifact id (not recommended).  Open a ticket (see
below) if you think this should change.

The misc field (<tt>%m</tt>) is currently set to the
repository. Suggestions for alternatives are welcome (data from the
<tt>fossil status</tt> command preferred).