Name

svnversion

Synopsis

svnversion [options] path [URL]

Produce a version number for the working copy in path. The URL is the pathname part of a Subversion URL used to tell if the path was switched (see svn switch).

The output is a single number if the working copy represents an unmodified, non-switched revision whose URL matches the supplied URL.

Options

-c

Report “last changed” revision instead of the current revision.

-n

Do not print the final newline.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.