10
This is a very brief 5-minute tutorial, covering only what a first time user
11
needs to start a project or start contributing to a project using Bazaar.
12
For a more detailed look, see `Learning More`_.
18
See http://bazaar-vcs.org/Download. Bazaar is probably in your GNU/Linux
19
distribution already. If not, it's trivial to install on any platform that
20
runs Python 2.4, including Windows. Installation should take at most a few
27
You want Bazaar to correctly identify you in revision logs. Using your name
28
and email instead of Joe Doe's, type::
30
$ bzr whoami "Joe Doe <joe.doe@gmail.com>"
35
Joe Doe <joe.doe@gmail.com>
38
Putting Existing Files Under Version Control
39
============================================
41
It is very easy to put an existing set of files under version control using
47
$ bzr commit -m "Initial import"
49
You can now make changes, track them, publish your branch and so on as
53
Creating A Personal Branch
54
==========================
56
Rather than starting a new project, you may wish to work on an existing
57
project either you or someone else has published.
59
Create a branch of an existing project::
61
$ bzr branch http://example.com/code/foobar.dev foobar.joe
62
Branched 1 revision(s).
64
Note that after you create a personal branch, you don't need web access to
76
Check what have you done::
79
=== modified file 'foo.c'
88
_pyfribidi_log2vis (PyObject * self, PyObject * args, PyObject * kw)
91
Commit your hard work::
93
$ bzr commit -m 'added some whitespace'
97
Viewing the Revision Log
98
========================
100
Browse the history of the branch::
103
------------------------------------------------------------
105
committer: Joe Doe <joe.doe@gmail.com>
106
branch nick: foobar.joe
107
timestamp: Mon 2006-02-06 01:33:35 +0200
109
added some whitespace
110
------------------------------------------------------------
112
committer: James Hacker <jmh@example.com>
113
branch nick: foobar.dev
114
timestamp: Mon 2006-02-06 01:06:11 +0200
119
Updating Your Branch from the Main Branch
120
=========================================
122
While you work hard on your branch, others may have committed new code to the
123
main branch. From time to time, you want to merge changes from the main
124
branch into your branch::
127
Using saved location: http://example.com/code/foobar.dev
128
All changes applied successfully.
130
What was changed locally by merging the main branch?
135
=== modified file 'pyfribidi.c'
146
Commit the changes from the main branch::
148
$ bzr commit -m 'merge from main branch'
149
Committed revision 6.
151
Note that you may occasionally need to resolve conflicts or make other minor
152
changes (so tests pass say) before committing. For these reasons, merge does
153
not implicitly commit.
156
Publishing Your Branch
157
======================
159
You can simply use rsync to copy your branch to a web server, but using
160
``bzr push`` is the easiest way. Let's assume you want to publish your
161
branch in jod.example.com/foobar.joe and you have sftp access to the server::
163
$ bzr push sftp://jod@jod.example.com/public_html/foobar.joe/
164
2 revision(s) pushed.
166
Note that to use sftp, your may need to install ''paramiko'' and ''pyCrypto''.
167
See http://bazaar-vcs.org/InstallationFaq for details.
169
Now anyone can get your branch with (try it yourself!)::
171
bzr branch http://jod.example.com/foobar.joe/
177
To learn about bzr topics::
181
To learn about bzr commands::
185
To learn about the ''foo'' topic or command::
189
Alternatively, browse the `Bazaar Documentation <../../index.html>`_.