Section 15.4. svnversion


15.4. svnversion

Outputs a version number for a file or directory in a working copy. If the working copy has been modified, the version number has a trailing M. If it has been switched, there is a trailing S. If the working copy contains multiple revisions, the revision number is given as a range, in the form N:M, where N is the lowest revision and M is the highest.

Switched directories are detected automatically for all files and directories except the one specifically given on the command line as the base path. To determine whether the base path has been switched, you have to provide a URL on the command line that gives the unswitched URL.

Basic Usage

 $ svnversion WC_PATH [URL] 

Options

  • -n

    Tell svnversion not to output a trailing newline at the end of the output.

  • -c

    Tell svnversion to output the last changed revision numbers, instead of the revision numbers of the current revision.

  • --version

    Outputs version information for the svnversion program.



    Subversion Version Control. Using The Subversion Version Control System in Development Projects
    Subversion Version Control. Using The Subversion Version Control System in Development Projects
    ISBN: 131855182
    EAN: N/A
    Year: 2005
    Pages: 132

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net