summaryrefslogtreecommitdiff
path: root/sandbox/aa-turner/git_conversion/common_load.lift
blob: dabcaff35e0664ad113d2224f52318644d61577e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# common_load.lift

# These reposurgeon scripts are common to all repositories.
# They are run in order:
# 1. common_load.lift
# 2. common_merge.sh
# 3. common_clean.lift

# Set up options
set canonicalize
set progress
prefer git

# Read subversion repo
read --no-automatic-ignores --user-ignores <docutils.svn
authors read <docutils.map
prefer git

# Update commit messages
gitify
=C filter dedos

# Add backreference to SVN IDs
=C append "\n\nSubversion-Revision-ID: %LEGACY%" --legacy --rstrip

# Delete branch-creation commits in Subversion, which are prefixed with
# "emptycommit".
tag delete /emptycommit/

# Delete invalid tags and branches
tag delete deleted/r3814/docutils-0.3.9-root
tag delete rel-0.15-root 
branch delete /tags\/.*/
branch delete refs/tags/start
branch delete refs/tags/merged_to_nesting
branch delete refs/heads/address-rendering
branch delete refs/heads/index-bug

# Remove "This commit was manufactured by cvs2svn ..." commits
<1813> squash --quiet --delete
<2531> setfield comment "\n"
<2531> squash
<2573> setfield comment "\n"
<2573> squash

# Merge split "initial revision" commits
<18> setfield comment "Subversion-Revision-ID: 18"
<18> squash --pushback
renumber

# Ensure every commit message ends with a single new line
=C append "\n" --rstrip
=C append "\n"

# Export entire stream to git
write >docutils_tmp.fi

# Export to early (pre-CVS merge)
# <2002-04-18T02:50:09Z#1> more editing progress (last commit of docutils-early)
=C & 1..<2002-04-18T02:50:09Z#1> write >docutils_early.fi

#Export to late (post-CVS merge)
=C & 1..<2002-04-18T02:50:09Z#1> delete
write >docutils_late.fi

exit