Index: ch09.xml =================================================================== --- ch09.xml (revision 1329) +++ ch09.xml (working copy) @@ -5449,7 +5449,7 @@ Synopsis - svnversion [OPTIONS] WC_PATH [TRAIL_URL] + svnversion [OPTIONS] [WC_PATH [TRAIL_URL]] @@ -5465,6 +5465,10 @@ (detection of switches within WC_PATH does not rely on TRAIL_URL). + When WC_PATH is not defined the current directory + will be used as the working copy path. TRAIL_URL cannot be + defined if WC_PATH is not explicitly given. + @@ -5516,11 +5520,12 @@ example, immediately after an update), then that revision is printed out: - $ svnversion . + $ svnversion 4168 You can add TRAIL_URL to show that the working copy is - not switched from what you expect: + not switched from what you expect. Note that the WC_PATH was + required in this command: $ svnversion . /repos/svn/trunk 4168 @@ -5528,32 +5533,32 @@ For a mixed-revision working copy, the range of revisions present is printed: - $ svnversion . + $ svnversion 4123:4168 If the working copy contains modifications, a trailing "M" is added: - $ svnversion . + $ svnversion 4168M If the working copy is switched, a trailing "S" is added: - $ svnversion . + $ svnversion 4168S Thus, here is a mixed-revision, switched working copy containing some local modifications: - $ svnversion . + $ svnversion 4212:4168MS If invoked on a directory that is not a working copy, svnversion assumes it is an exported working copy and prints "exported": - $ svnversion . + $ svnversion exported