[haiku-development] [PATCH] Retrieve SVN revision from git

  • From: Andreas Färber <andreas.faerber@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 13 Aug 2008 01:12:46 +0200

Hello,

When compiling Haiku from a Git repository, currently the SVN revision number is not shown in uname or AboutSystem. The attached patch adds two additional fallback steps for retrieving the SVN revision:

When `svn info` fails, `git svn info` is called (git-svn's equivalent with identical output). When `git svn info` fails, `git log`is searched for a "git-svn-id: " line and the revision is extracted from there.

I have tested the latter fallback, the other variant I only tried manually from the command line.

Andreas

Other related posts: