~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/mini-tutorial/index.txt

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 21:28:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6460.
  • Revision ID: jelmer@samba.org-20120127212856-ewnjgn7fyblphcqw
Migrate mail_client to config stacks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
Let's suppose we want to store a new project under Bazaar.  First, we'll
58
58
make a *repository directory* to hold all our work related to this
59
 
project.  We can then have multiple branch directories under here, and
60
 
they'll all store the committed history in the repository.
 
59
project, where developers can create branches to test development of
 
60
specific features or, more generally, modifications to the working file
 
61
set.  
 
62
 
 
63
After creating the repository, change to that directory, and create the
 
64
project's main trunk branch.
61
65
 
62
66
::
63
67
 
71
75
  Using shared repository: /home/john/sample/
72
76
 
73
77
 
 
78
Adding files
 
79
============
 
80
 
 
81
Now that we have the trunk, we need to move to that directory and
 
82
create some example files for the first version of that project.  Create
 
83
a file ``test1.txt`` using a text editor (like emacs, nano, or notepad),
 
84
and save it.  Then we'll "add" the file, which tells bzr we want it to
 
85
track changes::
 
86
 
 
87
  bzr add test1.txt
 
88
 
 
89
and then commit, which saves a snapshot of all versioned files::
 
90
 
 
91
  bzr commit -m "Added first line of text"
 
92
 
 
93
 
74
94
Making changes to your files
75
95
============================
76
96
 
 
97
 
77
98
Let's change a file and commit that change to your branch.
78
99
 
79
100
Edit ``test1.txt`` in your favourite editor, then use ``bzr add`` to tell bzr