]> andersk Git - svn-all-fast-export.git/blobdiff - samples/merged-branches-tags.rules
Add a set of sample rules files.
[svn-all-fast-export.git] / samples / merged-branches-tags.rules
diff --git a/samples/merged-branches-tags.rules b/samples/merged-branches-tags.rules
new file mode 100644 (file)
index 0000000..c1ab75c
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# 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
+
+# Subversion doesn't understand the Git concept of tags
+# In Subversion, tags are really branches
+#
+# Only a post-processing (i.e., after converting to Git) of the tag
+# branches can we be sure that a tag wasn't moved or changed from the
+# branch it was copied from
+#
+# So we don't pretend that SVN tags are Git tags and then import
+# everything as one
+
+match /(branches|tags)/([^/]+)/
+  repository myproject
+  branch \2
+end match
This page took 0.025854 seconds and 4 git commands to generate.