Add a set of sample rules files.
[svn-all-fast-export.git] / samples / min-max-revision.rules
blob32ccd8e62d000d307135d3d0fb1207a7306e8059
2 # Declare the repositories we know about:
5 create repository myproject
6 end repository
9 # Declare the rules
10 # Note: rules must end in a slash
13 # Ignore this particular revision in trunk
14 # See ignore-branch.rules first
15 # Note that rules are applied in order of appearance, so this rule
16 # must appear before the generic trunk rule
17 match /trunk/
18   min revision 123
19   max revision 123
20 end match
22 # Stop importing trunk
23 # If we don't specify a max revision, then there is no limit
24 # The same applies to min revision (i.e., min revision is 0)
25 match /trunk/
26   min revision 1234
27 end match
29 match /trunk/
30   repository myproject
31   branch master
32 end match
34 match /branches/([^/]+)/
35   repository myproject
36   branch \1
37 end match
39 # No tag processing