~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Author(s): Mark Hammond
  • Date: 2008-09-09 17:02:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3697.
  • Revision ID: john@arbash-meinel.com-20080909170221-svim3jw2mrz0amp3
An updated transparent icon for bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
with a local tree-less repository. This lets you switch what you
62
62
are working on with ease. For example::
63
63
 
64
 
  bzr init-repo --no-trees PROJECT
65
 
  cd PROJECT
66
 
  bzr branch bzr+ssh://centralhost/srv/bzr/PROJECT/trunk
67
 
  bzr checkout --lightweight trunk my-sandbox
 
64
  bzr init-repo --no-trees X-repo
 
65
  cd X-repo
 
66
  bzr branch sftp://centralhost/srv/bzr/X-repo/X-trunk
 
67
  bzr checkout --lightweight X-trunk my-sandbox
68
68
  cd my-sandbox
69
69
  (hack away)
70
70
 
71
 
Note that trunk in this example will have a ``.bzr`` directory within it
 
71
Note that X-trunk in this example will have a ``.bzr`` directory within it
72
72
but there will be no working tree there as the branch was created in
73
73
a tree-less repository. You can grab or create as many branches as you
74
74
need there and switch between them as required. For example::
75
75
 
76
76
  (assuming in my-sandbox)
77
 
  bzr branch bzr+ssh://centralhost/srv/bzr/PROJECT/PROJECT-1.0 ../PROJECT-1.0
78
 
  bzr switch ../PROJECT-1.0
 
77
  bzr branch sftp://centralhost/srv/bzr/X-repo/X-1.0 ../X-1.0
 
78
  bzr switch ../X-1.0
79
79
  (fix bug in 1.0)
80
80
  bzr commit -m "blah, blah blah"
81
 
  bzr switch ../trunk
 
81
  bzr switch ../X-trunk
82
82
  (go back to working on the trunk)
83
83
 
84
84
Note: The branches may be local only or they may be bound to