aboutsummaryrefslogtreecommitdiffstats
path: root/samples/standardlayout.rules
diff options
context:
space:
mode:
Diffstat (limited to 'samples/standardlayout.rules')
-rw-r--r--samples/standardlayout.rules26
1 files changed, 26 insertions, 0 deletions
diff --git a/samples/standardlayout.rules b/samples/standardlayout.rules
new file mode 100644
index 0000000..b5e102f
--- /dev/null
+++ b/samples/standardlayout.rules
@@ -0,0 +1,26 @@
+#
+# Declare the repositories we know about:
+#
+
+create repository myproject
+end repository
+
+#
+# Declare the rules
+# Note: rules must end in a slash
+#
+
+match /trunk/
+ repository myproject
+ branch master
+end match
+
+match /branches/([^/]+)/
+ repository myproject
+ branch \1
+end match
+
+match /tags/([^/]+)/
+ repository myproject
+ branch refs/tags/\1
+end match