svnversion

I just discovered a nifty little utility

Often working copies are only partially updated, this command gives a very quick command-line summary of the state of the working copy.

It's not as rich an output as kdesvn which will colour code all the updateable files, but its a standard part of svn so should always be available.

Name

svnversion — Summarize the local revision(s) of a working copy.

Synopsis

svnversion [OPTIONS] WC_PATH [TRAIL_URL]

Description

svnversion is a program for
summarizing the revision mixture of a working copy. The
resultant revision number, or revision range, is written to
standard output.

TRAIL_URL, if present, is the trailing portion of the
URL used to determine if WC_PATH itself is switched
(detection of switches within WC_PATH does not rely on
TRAIL_URL).

Examples

If the working copy is all at the same revision (for
example, immediately after an update), then that revision is
printed out:

$ svnversion .
4168

For a mixed-revision working copy, the range of
revisions present is printed:

$ svnversion .
4123:4168

Tags

Post new comment

Got something to add - just enter a comment
all other fields are optional.

Your email address will not be published.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.