]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r323394: newvers.sh: accept "git-svn-id:" at the start of a line only
authoremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:17:03 +0000 (20:17 +0000)
committeremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:17:03 +0000 (20:17 +0000)
commit5715556bd55bb67977e871b1a07c0aa429de2fde
treed74149e504186a1dfc4ef6d44fc15c98b2ad866b
parent888db8b0385bf25f5c6c872726c8eafee7c2469f
MFC r323394: newvers.sh: accept "git-svn-id:" at the start of a line only

This prevents incorrect subversion revision detection when "git svn" is
not being used to get the sources but git is available. Previously old
subversion revisions included in commit messages were favoured over the
more recent and correct revisions in git notes.

For example cf1f35574722 represents r315395 but was treated as r313908
which is referenced in the commit message. Commits following
r315395/cf1f35574722 but before another commit with a git-svn-id
reference in the commit message would be treated as r313908 as well.

Patch from PR updated to accommodate the initial four space indent in
`git log` ouptut.

PR: 221848
Submitted by: Fabian Keil
Obtained from: ElectroBSD
sys/conf/newvers.sh