5
The various ways that exist to tell Bazaar your email address for
8
Why set up an email address with Bazaar?
9
========================================
10
Bazaar stores the claimed email address in revisions when they're
1
Why set up an email address with Bazaar-NG?
2
===========================================
3
Bazaar-NG stores the claimed email address in revisions when they're
11
4
created, so that people can tell who commited which revisions. Of course,
12
5
people can change the email address claimed, so you have to trust the
13
6
people involved. Additionally, the email address in a revision gives
17
10
How to setup your email address
18
11
===============================
19
Bazaar will try to guess an email address based on your username and the
12
Bazaar-NG will try to guess an email address based on your username and the
20
13
hostname if none is set. This will probably not be what you want, so three
21
ways exist to tell Bazaar what email to use
14
ways exist to tell Bazaar-NG what email to use
23
16
* You can set your email in the default ini file,
24
17
* You can set emails per-branch in the branch specific ini file,
27
20
The order of precedence is
29
22
1. If the `$BZREMAIL` env variable is set, use it.
30
2. If an email is set for your current branch in the `locations.conf` ini
23
2. If an email is set for your current branch in the `branches.conf` ini file.
32
24
3. If an email is set in the `bazaar.conf` default ini file.
33
25
4. If the `$EMAIL` env variable is set.
34
5. Bazaar will try to guess based on your username and the hostname.
26
5. Bazaar-NG will try to guess based on your username and the hostname.
36
To check on what Bazaar thinks your current email is, use the '''whoami'''
28
To check on what Bazaar-NG thinks your current email is, use the '''whoami'''
37
29
("who am i?") command::
40
32
Joe Cool <joe@example.com>
42
Setting email via the 'whoami' command
43
======================================
44
You can use the whoami command to set your email globally::
46
% bzr whoami 'Joe Cool <joe@example.com>'
48
or only for the current branch::
50
% bzr whoami --branch 'Joe Cool <joe@example.com>'
52
These modify your global bazaar.conf or branch branch.conf file, respectively.
54
34
Setting email via default ini file
55
35
==================================
56
To use the default ini file, create the file `$HOME/.bazaar/bazaar.conf` (on
57
Windows this is `%APPDATA%\bazaar\2.0\bazaar.conf`) and set an email address
58
as shown below. Please note that the word DEFAULT is case sensitive, and
59
must be in upper-case.::
36
The first method is using the default ini file. To use the default ini
37
method, create the file `$HOME/.bazaar/bazaar.conf` (on Windows this is
38
`%APPDATA%\bazaar\2.0\bazaar.conf`) and set an email address as shown
39
below. Please note that the word DEFAULT is case sensitive, and must be in
62
43
email=Your Name <name@isp.com>
68
49
===================================
70
51
The second approach is to set email on a branch by branch basis by using the
71
`$HOME/.bazaar/locations.conf` ini file, thusly::
52
`$HOME/.bazaar/branches.conf` ini file, thusly::
73
54
[/some/branch/location]
74
55
email=Your Name <name@other-isp.com>
79
60
Setting email via environment
80
61
-----------------------------
81
The final method Bazaar will use is checking for the `$BZREMAIL` and
62
The final method Bazaar-NG will use is checking for the `$BZREMAIL` and
82
63
`$EMAIL` environment variables. Generally, one would use this method to
83
64
override the email in a script context. If you would like to set a general
84
65
default, then please see the ini methods above.
89
70
Some people want to avoid sharing their email address so as not to get
90
spam. Bazaar will never disclose your email address, unless you publish
71
spam. Bazaar-NG will never disclose your email address, unless you publish
91
72
a branch or changeset in a public location. It's recommended that you
92
73
''do'' use a real address, so that people can contact you about your work,
93
74
but it's not required. You can use an address which is obfuscated, which