aboutsummaryrefslogtreecommitdiffstats
path: root/rules/mga-pkgs.rules
blob: a7131c969d7c216d90c3e5e85a6e2077630fd17c (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
# Main Package storage
match /cauldron/([^/:]+)/current/
  repository \1
  branch master
end match

# Match branches of packages
match /cauldron/([^/:]+)/branches/([^/:]+)/current/
  repository \1
  branch refs/heads/topic/\2
end match

# But ignore any other branches
match /cauldron/([^/:]+)/branches/
end match

# And ignore pristine
match /cauldron/([^/:]+)/pristine/
end match

# Tag any releases
match /cauldron/([^/:]+)/releases/([^/:]+)/([^/:]+)/
  repository \1
  branch refs/tags/\2-\3
end match

# Deal with any release tags with epochs (colons make for invalid git branch names)
match /cauldron/([^/:]+)/releases/([^/:]+):([^/:]+)/([^/:]+)/
  repository \1
  branch refs/tags/\2+\3-\4
end match

# Branches for older distro versions
match /updates/([0-9]+)/([^/:]+)/current/
  repository \2
  branch refs/heads/mga\1
end match

# And some slightly special handling of our private infra repos
match /updates/infra_([0-9]+)/([^/:]+)/current/
  repository \2
  branch refs/heads/infra\1
end match

# Epoch tag options:
# 0+123-4.mga5
# 0/123-4.mga5
# 0=123-4.mga5
# {0}123-4.mga5