3 base
=$HOME/things
/Adns
/Cvs-Convert
9 if ! test -d
$tmp/git-cvsi
; then
12 git cvsimport
-d
`pwd`/cvs-repo
-C tmp
/git-cvsi.new
-k
-p
--norc adns
13 mv tmp
/git-cvsi.new tmp
/git-cvsi
17 rsync
-aH
--delete git-cvsi
/. adjust
21 local oldbranchname
=$1
23 git tag
$newtagname $oldbranchname
24 git branch
-D
$oldbranchname
28 # these two together unconditionally delete the tag if it exists
29 git tag
-f
$tagname master
32 abandondatedbranch
() {
36 if [ "x$newdesc" = x
]; then newdesc
=$olddesc; fi
37 abandonbranch branch-
$date-$olddesc abandon.
$date.
$newdesc
38 ensurenotag branchpoint-
$date-$olddesc master
41 abandonbranch branch-rrtypenoenum abandon
.1998-10-04.rrtypenoenum
42 abandondatedbranch
1999-04-10 mthread multithread
43 abandondatedbranch
1999-04-11 ipv6
44 abandondatedbranch
1999-04-11 pollfds
46 abandondatedbranch
1999-05-09 gplvslgpl
48 abandondatedbranch
2000-05-07 ipv6
49 abandonbranch branch-0-7-inftodebug abandon
.2000-03-26.infotodebug-0.7
54 local branchname
=branch-
$desc
56 local branchtip
=`git rev-parse $branchname~0`
57 local oldparents
=`git-log -n1 --pretty=format:%P $mergecommit`
58 cat <<END >>.git/info/grafts
59 $2 $oldparents $branchtip
61 git branch
-D
$branchname
62 ensurenotag mergepoint-
$desc
65 graftmergein logcallbackfn
741a795cdaa539b48f83afbc0ac8e471543b9bf6
67 xargs git tag
-d
<<END
78 scr
=git-to-cvs-conversion-script
81 git commit
-m
"$scr: record the script
83 Record the script we used to convert the CVS repo to git"
85 git commit
-m
"$scr: delete the script
87 We have in fact done the conversion and don't need the script any more."
89 cat >$tmp/msg-filter
<<'FEND'
93 if ($out =~ m/^\@\@/s &&
94 $out =~ m/^(?!-)(?:\+ )?[^\@ ].*$/m) {
95 print $&, "\n\n" or die $!;
101 chmod +x
$tmp/msg-filter
103 cat >$tmp/tree-filter
<<'FEND'
105 if test -f GPL-vs-LGPL; then
106 cat <<'END' GPL-vs-LGPL >GPL-vs-LGPL.new
107 NB that NO VERSIONS of this file have been released, and I do not
108 intend to publish this version. If you get this file from a
109 work-in-progress or abandoned branch, old old version, in a version
110 control system (eg CVS or git) I definitely do not intend the licence
111 exceptions in it to apply - these were all drafts, as you should know
112 if you know what retrieving work in progress, old or abandoned
113 versions or branches means !
115 - Ian Jackson, 29th April 2014.
118 mv -f GPL-vs-LGPL.new GPL-vs-LGPL
122 chmod +x
$tmp/tree-filter
124 git-filter-branch
--tree-filter
$tmp/tree-filter
--msg-filter
$tmp/msg-filter \
125 `git-show-ref | awk '{print $2}'`
127 git-show-ref |
awk '{print $2}' |
grep '^refs/original/' \
128 |
xargs -n1 git-update-ref
-d
130 rm -rf
$tmp/converted
134 git fetch
$tmp/adjust
'refs/*:refs/*'