git-migration: cvs2git_fixes.sh - first branches then tags; it is faster if...
draenog
draenog at pld-linux.org
Fri Feb 11 21:55:58 CET 2011
Author: draenog Date: Fri Feb 11 20:55:58 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- first branches then tags; it is faster if the branches are removed
---- Files affected:
git-migration:
cvs2git_fixes.sh (1.7 -> 1.8)
---- Diffs:
================================================================
Index: git-migration/cvs2git_fixes.sh
diff -u git-migration/cvs2git_fixes.sh:1.7 git-migration/cvs2git_fixes.sh:1.8
--- git-migration/cvs2git_fixes.sh:1.7 Fri Feb 11 21:32:38 2011
+++ git-migration/cvs2git_fixes.sh Fri Feb 11 21:55:53 2011
@@ -17,15 +17,6 @@
name=$1
-git show-ref --tags | \
-while read rev tagname; do
- if [ "`git show --format="%an" --quiet $rev`" = "cvs2svn" ]; then
- git diff-tree --diff-filter=ACMRTUXB --quiet $rev~ $rev && \
- [ -z "`git branch --contains $rev`" ] && \
- git update-ref "$tagname" $rev~
- fi
-done
-
git show-ref --heads | grep -E 'unlabeled-[0-9.]+$' | \
while read rev branchname; do
if [ -z "$name" ]; then
@@ -37,3 +28,13 @@
fi
fi
done
+
+git show-ref --tags | \
+while read rev tagname; do
+ if [ "`git show --format="%an" --quiet $rev`" = "cvs2svn" ]; then
+ git diff-tree --diff-filter=ACMRTUXB --quiet $rev~ $rev && \
+ [ -z "`git branch --contains $rev`" ] && \
+ git update-ref "$tagname" $rev~
+ fi
+done
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/cvs2git_fixes.sh?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list