Revision: 78334 http://sourceforge.net/p/brlcad/code/78334 Author: starseeker Date: 2021-02-26 13:37:03 +0000 (Fri, 26 Feb 2021) Log Message: ----------- script to pull the git commits not associted with an SVN rev, filtering some of the known inserted commit patterns from SVN era
Added Paths: ----------- brlcad/trunk/misc/repoconv/verify2/git_only.sh Added: brlcad/trunk/misc/repoconv/verify2/git_only.sh =================================================================== --- brlcad/trunk/misc/repoconv/verify2/git_only.sh (rev 0) +++ brlcad/trunk/misc/repoconv/verify2/git_only.sh 2021-02-26 13:37:03 UTC (rev 78334) @@ -0,0 +1,23 @@ +#!/bin/bash +rm -f git_only.txt +git log --all --pretty=format:"%H" > sha1.txt +while read i; do + SHA1=$i + REV=$(git log -1 $SHA1 --pretty=format:"%B" |grep svn:revision:|awk -F':' '{print $3}') + if [ "$REV" == "" ] + then + SDEL=$(git log -1 $SHA1 --pretty=format:"%B" |grep "svn branch delete") + PMV=$(git log -1 $SHA1 --pretty=format:"%B" |grep "preliminary file move commit") + if [ "$SDEL" == "" ] && [ "$PMV" == "" ] + then + echo "$SHA1" + echo "$SHA1" >> git_only_1.txt + fi + else + echo "$REV" + fi +done < sha1.txt + +# First two commits are the sync commits - filter them out +tail -n +3 git_only_1.txt > git_only.txt +rm git_only_1.txt Property changes on: brlcad/trunk/misc/repoconv/verify2/git_only.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/x-sh \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits