14
14
store history, not working copies of files, so their enclosing
15
15
repository is usually creating using the ``no-trees`` option, e.g.::
17
bzr init-repo --no-trees sftp://centralhost/srv/bzr/X-repo/
17
bzr init-repo --no-trees sftp://centralhost/srv/bzr/PROJECT
19
19
You can think of this step as similar to setting up a new cvsroot or
20
20
Subversion repository. However, Bazaar gives you more flexibility
21
21
in how branches may be organised in your repository. See
22
`Choosing a shared repository layout`_ in the appendices for
22
`Advanced shared repository layouts`_ in the appendices for
23
23
guidelines and examples.
35
35
Here is an example of the first way::
38
bzr init X-repo/X-trunk
40
cp -ar ~/X . (copy files in using OS-specific tools)
37
bzr init-repo PROJECT (prepare local repository)
38
bzr init PROJECT/trunk
40
(copy development files)
41
cp -ar ~/PROJECT . (copy files in using OS-specific tools)
42
bzr add (populate repository; start version control)
42
43
bzr commit -m "Initial import"
43
(local branch has content - publish it centrally now)
44
bzr push sftp://centralhost/srv/bzr/X-repo/X-trunk
44
(publish to central repository)
45
bzr push sftp://centralhost/srv/bzr/PROJECT/trunk
46
47
Here is an example of the second way::
50
bzr init sftp://centralhost/srv/bzr/X-repo/X-trunk
51
bzr checkout sftp://centralhost/srv/bzr/X-repo/X-trunk
53
cp -ar ~/X . (copy files in using OS-specific tools)
49
bzr init-repo PROJECT (prepare local repository)
51
bzr init sftp://centralhost/srv/bzr/PROJECT/trunk
52
bzr checkout sftp://centralhost/srv/bzr/PROJECT/trunk
54
cp -ar ~/PROJECT . (copy files in using OS-specific tools)
55
bzr add (populate repository; start version control)
55
56
bzr commit -m "Initial import"
57
(publish to central repository)
58
bzr push sftp://centralhost/srv/bzr/project/trunk
57
60
Note that committing inside a working tree created using
58
61
the ``checkout`` command implicitly commits the content to