1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
Configuring Bazaar
==================
Telling Bazaar about yourself
-----------------------------
One function of a version control system is to keep track of who changed
what. In a decentralized system, that requires an identifier for each
author that is globally unique. Most people already have one of these: an
email address. Bazaar is smart enough to automatically generate an email
address by looking up your username and hostname. If you don't like the
guess that Bazaar makes, then use the ``whoami`` command to set the
identifier you want::
% bzr whoami "Your Name <email@example.com>"
If ``whoami`` is used without an argument, the current value is displayed.
Configuration files
-------------------
Configuration files are located in ``$HOME/.bazaar`` on Linux/Unix and
``C:\Documents and Settings\<username>\Application Data\Bazaar\2.0`` on
Windows. There are three primary configuration files in this location:
* ``bazaar.conf`` describes default configuration options,
* ``locations.conf`` describes configuration information for
specific branch locations,
* ``authentication.conf`` describes credential information for
remote servers.
Each branch can also contain a configuration file that sets values specific
to that branch. This file is found at ``.bzr/branch/branch.conf`` within the
branch. This file is visible to **all users of a branch**. If you wish to override
one of the values for a branch with a setting that is specific to you, then you
can do so in ``locations.conf``.
Here is sample content of ``bazaar.conf`` after setting an email address using
the ``whoami`` command::
[DEFAULT]
email = Your Name <email@example.com>
For further details on the syntax and configuration settings supported, see
`Configuration Settings <../user-reference/bzr_man.html#configuration-settings>`_
in the Bazaar User Reference.
|