aboutsummaryrefslogtreecommitdiffstats
path: root/samples/two-projects.rules
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2009-02-20 21:47:05 +0100
committerThiago Macieira <thiago@kde.org>2009-02-20 21:47:05 +0100
commit60d67149d24f86474d20fac636093092d7f37e7a (patch)
tree923ec1bea9d2dc3dd3283ca10dd10d81b8e2e664 /samples/two-projects.rules
parent7abbe81c3b2b10d144aee0be744258a352558e03 (diff)
downloadsvn2git-60d67149d24f86474d20fac636093092d7f37e7a.tar
svn2git-60d67149d24f86474d20fac636093092d7f37e7a.tar.gz
svn2git-60d67149d24f86474d20fac636093092d7f37e7a.tar.bz2
svn2git-60d67149d24f86474d20fac636093092d7f37e7a.tar.xz
svn2git-60d67149d24f86474d20fac636093092d7f37e7a.zip
Add a set of sample rules files.
All of these files are untested. I just wrote from memory.
Diffstat (limited to 'samples/two-projects.rules')
-rw-r--r--samples/two-projects.rules32
1 files changed, 32 insertions, 0 deletions
diff --git a/samples/two-projects.rules b/samples/two-projects.rules
new file mode 100644
index 0000000..c30715b
--- /dev/null
+++ b/samples/two-projects.rules
@@ -0,0 +1,32 @@
+#
+# 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 /project1/trunk/
+ repository project1
+ branch master
+end match
+
+match /project2/trunk/
+ repository project2
+ branch master
+end match
+
+# Note how we can use regexp to capture the repository name
+match /([^/]+)/branches/([^/]+)/
+ repository \1
+ branch \2
+end match
+
+# No tag processing