aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-05-29 09:21:22 +0100
committerColin Guthrie <colin@mageia.org>2014-05-29 09:50:32 +0100
commit4f20bec7bde3f58a8ceed5922e2cd04bd014c471 (patch)
treea7b15707c9627141083d801ed2e83acbaac75436 /rules
parenta4d2c84dc99e876419ec222de12a4609d49b92c4 (diff)
downloadsvn2git-4f20bec7bde3f58a8ceed5922e2cd04bd014c471.tar
svn2git-4f20bec7bde3f58a8ceed5922e2cd04bd014c471.tar.gz
svn2git-4f20bec7bde3f58a8ceed5922e2cd04bd014c471.tar.bz2
svn2git-4f20bec7bde3f58a8ceed5922e2cd04bd014c471.tar.xz
svn2git-4f20bec7bde3f58a8ceed5922e2cd04bd014c471.zip
Add Mageia README and rules for conversion.
Diffstat (limited to 'rules')
-rw-r--r--rules/mga-pkgs.rules49
1 files changed, 49 insertions, 0 deletions
diff --git a/rules/mga-pkgs.rules b/rules/mga-pkgs.rules
new file mode 100644
index 0000000..a7131c9
--- /dev/null
+++ b/rules/mga-pkgs.rules
@@ -0,0 +1,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