svn commit: r254045 - stable/9/sys/conf

Andriy Gapon avg at FreeBSD.org
Wed Aug 7 07:39:45 UTC 2013


Author: avg
Date: Wed Aug  7 07:39:44 2013
New Revision: 254045
URL: http://svnweb.freebsd.org/changeset/base/254045

Log:
  MFC r253602: newvers.sh: add another git-svn fallback

Modified:
  stable/9/sys/conf/newvers.sh
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/conf/   (props changed)

Modified: stable/9/sys/conf/newvers.sh
==============================================================================
--- stable/9/sys/conf/newvers.sh	Wed Aug  7 07:38:18 2013	(r254044)
+++ stable/9/sys/conf/newvers.sh	Wed Aug  7 07:39:44 2013	(r254045)
@@ -121,6 +121,11 @@ if [ -n "$git_cmd" ] ; then
 	else
 		svn=`$git_cmd log | fgrep 'git-svn-id:' | head -1 | \
 		     sed -n 's/^.*@\([0-9][0-9]*\).*$/\1/p'`
+		if [ -z "$svn" ] ; then
+			svn=`$git_cmd log --format='format:%N' | \
+			     grep '^svn ' | head -1 | \
+			     sed -n 's/^.*revision=\([0-9][0-9]*\).*$/\1/p'`
+		fi
 		if [ -n "$svn" ] ; then
 			svn=" r${svn}"
 			git="+${git}"


More information about the svn-src-stable-9 mailing list