~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/publishing_a_branch.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-24 03:58:02 UTC
  • mfrom: (3918.1.1 doc)
  • Revision ID: pqm@pqm.ubuntu.com-20081224035802-esmxzpzqfmjbf3vu
(mbp) In user guide, use 'PROJECT' as a metavariable not 'X-repo'

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.::
16
16
 
17
 
  bzr init-repo --no-trees sftp://centralhost/srv/bzr/X-repo/
 
17
  bzr init-repo --no-trees sftp://centralhost/srv/bzr/PROJECT
18
18
 
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
34
34
 
35
35
Here is an example of the first way::
36
36
 
37
 
  bzr init-repo X-repo
38
 
  bzr init X-repo/X-trunk
39
 
  cd X-repo/X-trunk
40
 
  cp -ar ~/X .     (copy files in using OS-specific tools)
41
 
  bzr add
 
37
  bzr init-repo PROJECT  (prepare local repository)
 
38
  bzr init PROJECT/trunk
 
39
  cd 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
45
46
 
46
47
Here is an example of the second way::
47
48
 
48
 
  bzr init-repo X-repo
49
 
  cd X-repo
50
 
  bzr init sftp://centralhost/srv/bzr/X-repo/X-trunk
51
 
  bzr checkout sftp://centralhost/srv/bzr/X-repo/X-trunk
52
 
  cd X-trunk
53
 
  cp -ar ~/X .     (copy files in using OS-specific tools)
54
 
  bzr add
 
49
  bzr init-repo PROJECT  (prepare local repository)
 
50
  cd PROJECT
 
51
  bzr init sftp://centralhost/srv/bzr/PROJECT/trunk
 
52
  bzr checkout sftp://centralhost/srv/bzr/PROJECT/trunk
 
53
  cd 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
56
59
 
57
60
Note that committing inside a working tree created using
58
61
the ``checkout`` command implicitly commits the content to