mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
Improve on r197334:
Find the most recently merged svn revision, too. If we get a svn revision that matches HEAD use rXXX=GIT otherwise use rXXX+GIT. Submitted by: avg MFC after: 3 days X-MFC: not stable/8 before 8.0
This commit is contained in:
parent
0cab1e9602
commit
23250941e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197433
@ -114,9 +114,16 @@ case "$d" in
|
||||
svn=`$git_cmd svn find-rev $git 2>/dev/null`
|
||||
if [ -n "$svn" ] ; then
|
||||
svn=" r${svn}"
|
||||
git="-${git}"
|
||||
git="=${git}"
|
||||
else
|
||||
git=" ${git}"
|
||||
svn=`$git_cmd log | fgrep 'git-svn-id:' | head -1 | \
|
||||
sed -n 's/^.*@\([0-9][0-9]*\).*$/\1/p'`
|
||||
if [ -n $svn ] ; then
|
||||
svn=" r${svn}"
|
||||
git="+${git}"
|
||||
else
|
||||
git=" ${git}"
|
||||
fi
|
||||
fi
|
||||
if $git_cmd --work-tree=${SRCDIR} diff-index \
|
||||
--name-only HEAD | read dummy; then
|
||||
|
Loading…
Reference in New Issue
Block a user