[Ffmpeg-devel] [PATCH] Show Subversion revision number in the version string

Dominik 'Rathann' Mierzejewski dominik
Mon Jun 19 17:06:06 CEST 2006

On Monday, 19 June 2006 at 16:49, M?ns Rullg?rd wrote:
> ?smail D?nmez said:
> > Pazartesi 19 Haziran 2006 16:29 tarihinde, Lo?c Le Loarer ?unlar?
> > yazm??t?:
> > [...]
> >> > svnversion looks way slower than a simple grep, it took 11 seconds on
> >> > mplayer SVN tree while grep is instant. What would be the exact cases
> >> > grep would fail?
> >>
> >> If there are local modifications, svnversion adds a M char at the end of
> >> the revision number, this is very usefull, it is a bit like the tainted
> >> flag of the linux kernel.
> >
> > Thanks for the info but I really don't think that worths 11 seconds ( on a
> > Pentium M 1.7, 512mb RAM ...)
> It's not a question of 11 seconds, it's a question of getting it right at all.
> What if your grep happens to pick a file that wan't modified in the last
> commit?  I also agree it is useful to know if there were any local changes.

AFAICT SVN keeps the latest revision number at the top of that file, so
as long as you grep in .svn in the root dir, it'll be the right revision.


MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan

More information about the ffmpeg-devel mailing list