~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2016-04-21 04:10:52 UTC
  • mfrom: (6616.1.1 fix-en-user-guide)
  • Revision ID: pqm@pqm.ubuntu.com-20160421041052-clcye7ns1qcl2n7w
(richard-wilbur) Ensure build of English use guide always uses English text
 even when user's locale specifies a different language. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

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