]> andersk Git - svn-all-fast-export.git/blobdiff - samples/recurse.rules
Add a set of sample rules files.
[svn-all-fast-export.git] / samples / recurse.rules
diff --git a/samples/recurse.rules b/samples/recurse.rules
new file mode 100644 (file)
index 0000000..bfce621
--- /dev/null
@@ -0,0 +1,37 @@
+#
+# Declare the repositories we know about:
+#
+
+create repository project1
+end repository
+
+create repository project2
+end repository
+
+#
+# Declare the rules
+# Note: rules must end in a slash
+#
+
+match /trunk/([^/]+)/
+  repository \1
+  branch master
+end match
+
+match /branches/([^/]+)/([^/]+)/
+  repository \1
+  branch \2
+end match
+
+
+#
+# Example of the recurse rule:
+# We tell svn-all-fast-export to not import anything
+# but to go inside and recurse in the subdirs
+# Note how the ending slash is missing in this particular case
+
+match /branches/[^/]+
+  action recurse
+end match
+
+# No tag processing
This page took 0.024147 seconds and 4 git commands to generate.