[svnbook] r4013 committed - Finish issue #63 ("New 'svnlook filesize' subcommand")....
svnbook at googlecode.com
svnbook at googlecode.com
Thu Aug 18 13:20:18 CDT 2011
Revision: 4013
Author: cmpilato at gmail.com
Date: Thu Aug 18 11:19:27 2011
Log: Finish issue #63 ("New 'svnlook filesize' subcommand").
* en/book/ch09-reference.xml
(svn.ref.svnlook.c.filesize): New section.
http://code.google.com/p/svnbook/source/detail?r=4013
Modified:
/trunk/en/book/ch09-reference.xml
=======================================
--- /trunk/en/book/ch09-reference.xml Tue Aug 16 12:21:14 2011
+++ /trunk/en/book/ch09-reference.xml Thu Aug 18 11:19:27 2011
@@ -7306,6 +7306,69 @@
</refsect1>
</refentry>
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
+ <refentry id="svn.ref.svnlook.c.filesize">
+
+ <indexterm>
+ <primary>svnlook</primary>
+ <secondary>subcommands</secondary>
+ <tertiary>filesize</tertiary>
+ </indexterm>
+
+ <refnamediv>
+ <refname>svnlook filesize</refname>
+ <refpurpose>Print the size (in bytes) of a versioned
+ file.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Synopsis</title>
+ <para><literal>svnlook filesize REPOS_PATH
+ PATH_IN_REPOS</literal></para>
+ </refsect1>
+ <refsect1>
+ <title>Description</title>
+
+ <para>Print the file size (in bytes) of the file located
+ at <replaceable>PATH_IN_REPOS</replaceable> in the HEAD
+ revision of the repository identified
+ by <replaceable>REPOS_PATH</replaceable> as a base-10
+ integer followed by an end-of-line character. Use
+ the <option>--revision</option> (<option>-r</option>)
+ and <option>--transaction</option> (<option>-t</option>)
+ options to specify a version of the file other than HEAD
+ whose file size you wish to display.</para>
+ </refsect1>
+
+ <refsect1>
+ <title>Options</title>
+
+ <informalexample>
+ <screen>
+--revision (-r) REV
+--transaction (-t) TXN
+</screen>
+ </informalexample>
+ </refsect1>
+
+ <refsect1>
+ <title>Examples</title>
+
+ <para>The following demonstrates how to display the size of
+ the <filename>trunk/vendors/deli/soda.txt</filename> file
+ as it appeared in revision 40 of our sample
+ repository:</para>
+
+ <informalexample>
+ <screen>
+$ svnlook filesize -r 40 /var/svn/repos trunk/vendors/deli/soda.txt
+23
+$
+</screen>
+ </informalexample>
+
+ </refsect1>
+ </refentry>
+
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
<refentry id="svn.ref.svnlook.c.help">
More information about the svnbook-dev
mailing list