-
Notifications
You must be signed in to change notification settings - Fork 6
/
llvm-svn2git-remainder.rules
139 lines (112 loc) · 3.46 KB
/
llvm-svn2git-remainder.rules
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
include llvm-svn2git-common.rules
# Create the repositories (unfortunately duplicative of the data in -common.
create repository archive
end repository
create repository lnt
end repository
create repository test-suite
end repository
create repository www
end repository
create repository www-pubs
end repository
create repository zorg
end repository
### Handle archive repo
## Handle gcc-plugin -> dragonegg special cases:
match /gcc-plugin/
# In this (single) revision, the files weren't in a trunk subdir yet.
max revision 74837
repository archive
branch refs/pristine/master
prefix dragonegg/
end match
match /
# Ignore move from /gcc-plugin/ to /gcc-plugin/trunk/
min revision 74897
max revision 74897
end match
match /gcc-plugin/trunk/
# Special case: use "dragonegg" dir for /gcc-plugin.
max revision 83829
repository archive
branch refs/pristine/master
prefix dragonegg/
end match
match /
# Ignore move from gcc-plugin/ to dragonegg/, and re-addition of
# gcc-plugin with README.
min revision 83830
max revision 83831
end match
match /dragonegg/branches/trunk/
# r142090 branched dragonegg to "trunk"; they meant "release_30".
min revision 142090
max revision 142090
repository archive
branch refs/pristine/release_30
prefix dragonegg/
end match
match /
# ...and then r142091 renamed it.
min revision 142091
max revision 142091
end match
##
match /
# Ignore move from /llvm-gcc-4-2/ to /llvm-gcc-4.2/
min revision 39966
max revision 39966
end match
match /llvm-gcc-4-2/trunk/
# Rename llvm-gcc-4-2 to llvm-gcc-4.2
repository archive
branch refs/pristine/master
prefix llvm-gcc-4.2/
end match
match /(${ARCHIVE_PROJECTS})/trunk/
repository archive
branch refs/pristine/master
prefix \1/
end match
match /(${ARCHIVE_PROJECTS})/(${BRANCH_PATTERNS}|${TAG_PATTERNS})/
repository archive
prefix \1/
branch refs/pristine/\2
substitute branch s!^refs/pristine/tags/RELEASE_35/rc1$!refs/pristine/tags/RELEASE_350/rc1!
substitute branch s!^refs/pristine/tags/RELEASE_28$!refs/pristine/tags/RELEASE_28/final!
substitute branch s!^refs/pristine/branches/apple$!refs/pristine/branches/apple-base!
substitute branch s!^refs/pristine/tags/!refs/pristine/svntag/!
substitute branch s!^refs/pristine/branches/!refs/pristine/!
end match
### Handle separate-repo projects.
# Ignore a few movies that were added to www/
match /www/trunk/devmtg/2013-04/bougacha-lores.mov
end match
match /www/trunk/devmtg/2013-04/jasper-lores.mov
end match
match /www/trunk/devmtg/2013-04/krzikalla-lores.mov
end match
match /www/trunk/devmtg/2013-04/pellegrini-lores.mov
end match
match /www/trunk/devmtg/2013-04/stepanov-lores.mov
end match
match /(${SEPARATED_PROJECTS})/trunk/
repository \1
branch refs/pristine/master
end match
match /(${SEPARATED_PROJECTS})/(${BRANCH_PATTERNS}|${TAG_PATTERNS})/
repository \1
branch refs/pristine/\2
substitute branch s!^refs/pristine/tags/RELEASE_35/rc1$!refs/pristine/tags/RELEASE_350/rc1!
substitute branch s!^refs/pristine/tags/RELEASE_28$!refs/pristine/tags/RELEASE_28/final!
substitute branch s!^refs/pristine/branches/apple$!refs/pristine/branches/apple-base!
substitute branch s!^refs/pristine/tags/!refs/pristine/svntag/!
substitute branch s!^refs/pristine/branches/!refs/pristine/!
end match
### Explicitly ignore the ignorables.
match /(${MONOREPO_PROJECTS}|${IGNORED_PROJECTS})/
end match
match /README.(html|txt)
end match
# Note: any unhandled paths that reach the end are an error.