[MPlayer-dev-eng] Use "svnversion" to determine working copy revision in version.sh

Loren Merritt lorenm at u.washington.edu
Sat Jul 8 21:17:59 CEST 2006


On Sat, 8 Jul 2006, Herbert Alexander Faleiros wrote:

> patch attached uses "svnversion" to determine working copy revision.
>
> From Subversion book (http://svnbook.red-bean.com/):
>
> "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."
>
> From current version.sh:
>
> always return some like:
> 18964 (from svn info)
>
> using svnversion:
> 18964R (when working copy are changed)
>
> Advantages (some examples - from svnbook):
>
> If the working copy contains modifications, a trailing "M" is added:
> $ svnversion .
> 4168M
>
> here is a mixed-revision, switched working copy containing some local
> modifications:
> $ svnversion .
> 4212:4168MS

This has already been discussed and rejected. The reason we don't use 
svnversion is that it is potentially slow.

--Loren Merritt



More information about the MPlayer-dev-eng mailing list