[MPlayer-dev-eng] [PATCH] proper version info for git.mplayerhq.hu

Rudolf Polzer divVerent at alientrap.org
Mon Jul 26 11:40:13 CEST 2010


On Mon, Jul 26, 2010 at 09:05:31AM +0000, Carl Eugen Hoyos wrote:
> Rudolf Polzer <divVerent <at> alientrap.org> writes:
> 
> > I attached a small patch that, if mplayer is compiled from mplayer.git, uses
> > the git commit hash instead of UNKNOWN as version info.
> 
> Wouldn't it be better to show the svn version from which the git repository was
> cloned? (I believe this is how FFmpeg does it.)

Only as long as the git stays read-only. Just because no such move is planned
YET, it does not mean it won't happen in some years.

I attached a more elaborate version. It now shows, "in order of likelihood":

SVN-r12345-4.4.1
    if it is identical to a git-svn commit in master

SVN-r12345+LOCAL-4.4.1
    if it is identical to a git-svn commit in master plus local uncommitted changes

SVN-r12345+badf00d-4.4.1
    if it is identical to a git commit not on master that is derived from a git-svn
    commit on master

SVN-r12345+badf00d+LOCAL-4.4.1
    if it is identical to a git commit not on master that is derived from a git-svn
    commit on master plus local uncommitted changes

git-dedbeef-4.4.1
    if it is identical to a git commit on master

git-dedbeef+LOCAL-4.4.1
    if it is identical to a git commit on master plus local changes

git-dedbeef+badf00d-4.4.1
    if it is identical to a git commit not on master that is derived from a git
    commit on master

git-dedbeef+badf00d+LOCAL-4.4.1
    if it is identical to a git commit not on master that is derived from a git
    commit on master

git+badf00d-4.4.1
    if it is identical to a git commit not on master that has no common history
    with master

git+badf00d+LOCAL-4.4.1
    if it is identical to a git commit not on master that has no common history
    with master plus local changes

Is that beter?

Best regards,

Rudolf Polzer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version2.diff
Type: text/x-diff
Size: 1634 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100726/64cb786b/attachment.diff>


More information about the MPlayer-dev-eng mailing list