Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102724617
D27751.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27751.diff
View Options
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -248,42 +248,19 @@
if [ -n "$git_cmd" ] ; then
git=$($git_cmd rev-parse --verify --short HEAD 2>/dev/null)
- gitsvn=$($git_cmd svn find-rev $git 2>/dev/null)
- if [ -n "$gitsvn" ] ; then
- svn=" r${gitsvn}"
- git="=${git}"
- else
-# Log searches are limited to 10k commits to speed up failures.
-# We assume that if a tree is more than 10k commits out-of-sync
-# with FreeBSD, it has forked the the OS and the SVN rev no
-# longer matters.
- gitsvn=$($git_cmd log -n 10000 |
- grep '^ git-svn-id:' | head -1 | \
- sed -n 's/^.*@\([0-9][0-9]*\).*$/\1/p')
- if [ -z "$gitsvn" ] ; then
- gitsvn=$($git_cmd log -n 10000 --format='format:%N' | \
- grep '^svn ' | head -1 | \
- sed -n 's/^.*revision=\([0-9][0-9]*\).*$/\1/p')
- fi
- if [ -n "$gitsvn" ] ; then
- svn=" r${gitsvn}"
- git="+${git}"
- else
- git=" ${git}"
- fi
- fi
git_cnt=$($git_cmd rev-list --count HEAD 2>/dev/null)
if [ -n "$git_cnt" ] ; then
- git="${git}-c${git_cnt}"
+ git="c${git_cnt}-g${git}"
fi
git_b=$($git_cmd rev-parse --abbrev-ref HEAD)
- if [ -n "$git_b" ] ; then
- git="${git}(${git_b})"
+ if [ -n "$git_b" -a "$git_b" != "HEAD" ] ; then
+ git="${git_b}-${git}"
fi
if git_tree_modified; then
git="${git}-dirty"
modified=yes
fi
+ git=" ${git}"
fi
if [ -n "$hg_cmd" ] ; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 9:42 AM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14674218
Default Alt Text
D27751.diff (1 KB)
Attached To
Mode
D27751: Fix newvers.sh to no longer print an outdated SVN rev
Attached
Detach File
Event Timeline
Log In to Comment