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

  • From: "Niels Reedijk" <niels.reedijk@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 13 Aug 2008 16:09:33 +0200

2008/8/13 Andreas Färber <andreas.faerber@xxxxxx>:
> 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.

Does this fallback method show any indication that it is from a third
party git tree? Perhaps it can append the name of the branch.

N.

Other related posts: