~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: 2011-04-08 09:04:17 UTC
  • mfrom: (5761.1.1 636712-sftp-docs)
  • Revision ID: pqm@pqm.ubuntu.com-20110408090417-06s986zz14u67e0d
(spiv) Recommend SSH rather than SFTP in user documentation examples (Martin
 Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
store history, not working copies of files, so their enclosing
17
17
repository is usually creating using the ``no-trees`` option, e.g.::
18
18
 
19
 
  bzr init-repo --no-trees sftp://centralhost/srv/bzr/PROJECT
 
19
  bzr init-repo --no-trees bzr+ssh://centralhost/srv/bzr/PROJECT
20
20
 
21
21
You can think of this step as similar to setting up a new cvsroot or
22
22
Subversion repository. However, Bazaar gives you more flexibility
44
44
  bzr add                (populate repository; start version control)
45
45
  bzr commit -m "Initial import"
46
46
                         (publish to central repository)
47
 
  bzr push sftp://centralhost/srv/bzr/PROJECT/trunk
 
47
  bzr push bzr+ssh://centralhost/srv/bzr/PROJECT/trunk
48
48
 
49
49
Here is an example of the second way::
50
50
 
51
51
  bzr init-repo PROJECT  (prepare local repository)
52
52
  cd PROJECT
53
 
  bzr init sftp://centralhost/srv/bzr/PROJECT/trunk
54
 
  bzr checkout sftp://centralhost/srv/bzr/PROJECT/trunk
 
53
  bzr init bzr+ssh://centralhost/srv/bzr/PROJECT/trunk
 
54
  bzr checkout bzr+ssh://centralhost/srv/bzr/PROJECT/trunk
55
55
  cd trunk
56
56
  cp -ar ~/PROJECT .     (copy files in using OS-specific tools)
57
57
  bzr add                (populate repository; start version control)