# A sample DCVS configuration with several ranges, servers, and collections

# We start by defining several ranges, each consisting of 10000 possible
# revision branch numbers. You usually do not need to change this;
# only add new ranges when you need them for new servers.

range base 0..9999
range r1   10000..19999
range r2   20000..29999
range r3   30000..39999
range r4   40000..49999

# Our simple DCVS network consists of two servers:
server willow willow.tree.org 44555
server ash    ash.forest.net  44555

# We also have two clients computers at server willow and one at server ash:
client ws1 ws1.tree.org willow
client ws2 ws2.tree.org willow
client ws11 ws11.forest.net ash

# We distribute one repository, currently consisting of 4 different
# collections.
# The main trunk and vendor branch of collections c1, c3, and c4 is on
# willow, ash is responsible for the trunk and import of collection
# c2. Ash generally uses range r1 for its other collections, willow
# uses range r2.

collection c1 /repos/dcvs c1
  willow:base
  ash:r1
end

collection c2 /repos/dcvs libs/io
  willow:r2
  ash:base
end

collection c3 /repos/dcvs libs/text
  willow:base
  ash:r1
end

collection c4 /repos/dcvs libs/list
  willow:base
  ash:r1
end

# examples for default collections

# This is a default collection entry for the same repository:

collection default1 /repos/dcvs *
  willow:base
  ash:r1
end

# This is another default collection entry for another repository.
# Currently `.' has exactly the same meaning as `*' (though this may
# change in future versions):

collection default2 /repos/dcvs2 .
  willow:base
  ash:r1
end

# Currently it is meaningless to denote more than one default
# collection for each repository as regular expressions or globbing
# are not yet supported.

# Note that all other DCVSup and DCVS configuration file can be
# generated from this description by cvsupadm.