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

Herbert Alexander Faleiros herbert at faleiros.eti.br
Sat Jul 8 20:42:44 CEST 2006


Hi,

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

Herbert.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: version.sh.patch
Type: text/x-diff
Size: 418 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060708/16d0fbde/attachment.patch>


More information about the MPlayer-dev-eng mailing list