Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103276260
D18745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D18745.diff
View Options
Index: head/sys/conf/newvers.sh
===================================================================
--- head/sys/conf/newvers.sh
+++ head/sys/conf/newvers.sh
@@ -243,11 +243,15 @@
svn=" r${gitsvn}"
git="=${git}"
else
- gitsvn=`$git_cmd log --grep '^git-svn-id:' | \
+# 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 --format='format:%N' | \
+ gitsvn=`$git_cmd log -n 10000 --format='format:%N' | \
grep '^svn ' | head -1 | \
sed -n 's/^.*revision=\([0-9][0-9]*\).*$/\1/p'`
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 11:18 PM (19 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14810985
Default Alt Text
D18745.diff (854 B)
Attached To
Mode
D18745: Limit git history searches in newvers.sh
Attached
Detach File
Event Timeline
Log In to Comment