/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
2977.1.7 by Ian Clatworthy
move config reference into appendices
1
Configuring email
2
=================
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
3
6622.1.24 by Jelmer Vernooij
More doc renames.
4
.. Description of the various ways to specify to Breezy your email address for commits.
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
5
6622.1.24 by Jelmer Vernooij
More doc renames.
6
Why set up an email address with Breezy?
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
7
----------------------------------------
8
6622.1.24 by Jelmer Vernooij
More doc renames.
9
Breezy stores the specified email address in revisions when they're
4011.6.1 by Frank Aspell
Fixed typos.
10
created so that people can tell who committed which revisions.  The
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
11
email addresses are not verified, therefore they could be bogus, so
12
you have to trust the people involved in your project.  Additionally,
13
the email address in a revision gives others a way to contact the
14
author of a revision for credit and/or blame.  :)
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
15
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
16
How to set up your email address
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
17
--------------------------------
18
6622.1.24 by Jelmer Vernooij
More doc renames.
19
Breezy will try to guess an email address based on your username and the
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
20
hostname if none is set.  This will probably not be what you want, so three
6622.1.24 by Jelmer Vernooij
More doc renames.
21
ways exist to tell Breezy what email to use:
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
22
2293.1.6 by Brad Crittenden
post review changes
23
You can set your email in one of several configuration files.  Like
6740.1.1 by Jelmer Vernooij
Rename bazaar.conf to breezy.conf.
24
other configuration values, you can set it in ``breezy.conf`` as a
2293.1.6 by Brad Crittenden
post review changes
25
general setting.  If you want to override the value for a particular
26
branch, or set of branches, you can use ``locations.conf``.
6622.1.24 by Jelmer Vernooij
More doc renames.
27
``.brz/branch/branch.conf`` will also work, but will cause all commits
2293.1.6 by Brad Crittenden
post review changes
28
to that branch to use the same email address, even if someone else
29
does them.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
30
1610.2.2 by James Blackwell
Now they look good in rst2html
31
The order of precedence is
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
32
7490.15.2 by Jelmer Vernooij
document BZR_EMAIL behaviour.
33
 1. If the ``BRZ_EMAIL`` environment variable is set.
34
 #. If the ``BZR_EMAIL`` environment variable is set, for backwards
35
    compatibility with Bazaar.
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
36
 #. If an email is set for your current branch in the ``locations.conf``
1770.2.2 by Aaron Bentley
Rename branches.conf to locations.conf
37
    file.
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
38
 #. If an email is set four your current branch in the
6622.1.24 by Jelmer Vernooij
More doc renames.
39
    ``.brz/branch/branch.conf`` file.
6740.1.1 by Jelmer Vernooij
Rename bazaar.conf to breezy.conf.
40
 #. If an email is set in the ``breezy.conf`` default configuration file.
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
41
 #. If the `EMAIL` environment variable is set.
6622.1.24 by Jelmer Vernooij
More doc renames.
42
 #. Breezy will try to guess based on your username and the hostname.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
43
6622.1.24 by Jelmer Vernooij
More doc renames.
44
To check on what Breezy thinks your current email is, use the ``whoami``
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
45
("who am i?") command::
46
6622.1.24 by Jelmer Vernooij
More doc renames.
47
    % brz whoami
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
48
    Joe Cool <joe@example.com>
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
49
1816.2.8 by Robey Pointer
ammend setting_up_email to mention that 'whoami' can now be used
50
Setting email via the 'whoami' command
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
51
--------------------------------------
52
1816.2.8 by Robey Pointer
ammend setting_up_email to mention that 'whoami' can now be used
53
You can use the whoami command to set your email globally::
54
6622.1.24 by Jelmer Vernooij
More doc renames.
55
    % brz whoami "Joe Cool <joe@example.com>"
1816.2.8 by Robey Pointer
ammend setting_up_email to mention that 'whoami' can now be used
56
57
or only for the current branch::
58
6622.1.24 by Jelmer Vernooij
More doc renames.
59
    % brz whoami --branch "Joe Cool <joe@example.com>"
1816.2.8 by Robey Pointer
ammend setting_up_email to mention that 'whoami' can now be used
60
6740.1.1 by Jelmer Vernooij
Rename bazaar.conf to breezy.conf.
61
These modify your global ``breezy.conf`` or branch ``branch.conf`` file, respectively.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
62
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
63
Setting email via default configuration file
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
64
--------------------------------------------
65
6740.1.1 by Jelmer Vernooij
Rename bazaar.conf to breezy.conf.
66
To use the default ini file, create or edit the ``breezy.conf`` file (in
67
``~/.config/breezy/`` on Unix and in ``%APPDATA%\breezy\2.0\`` in Windows)
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
68
and set an email address as shown below.  Please note that the word DEFAULT
69
is case sensitive, and must be in upper-case.
2293.1.6 by Brad Crittenden
post review changes
70
::
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
71
72
    [DEFAULT]
73
    email=Your Name <name@isp.com>
74
75
3089.3.14 by Ian Clatworthy
follow-up tweaks to bzr.dev integration
76
For more information on the ini file format, see `Configuration Settings`_ in
6622.1.24 by Jelmer Vernooij
More doc renames.
77
the Breezy User Reference.
3089.3.14 by Ian Clatworthy
follow-up tweaks to bzr.dev integration
78
4634.164.2 by Alexander Belchenko
change links to user-reference/bzr_man.html to user-reference/index.html everywhere in the User Guide.
79
.. _Configuration Settings: ../user-reference/index.html#configuration-settings
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
80
81
Setting email on a per-branch basis
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
82
-----------------------------------
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
83
2293.1.6 by Brad Crittenden
post review changes
84
The second approach is to set email on a branch by branch basis by
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
85
using the ``locations.conf`` configuration file like this::
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
86
87
    [/some/branch/location]
88
    email=Your Name <name@other-isp.com>
89
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
90
This will set your email address in the branch at ``/some/branch/location``,
6740.1.1 by Jelmer Vernooij
Rename bazaar.conf to breezy.conf.
91
overriding the default specified in the ``breezy.conf`` above.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
92
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
93
Setting email via environment variable
94
--------------------------------------
7490.15.2 by Jelmer Vernooij
document BZR_EMAIL behaviour.
95
The final method Breezy will use is checking for the ``BRZ_EMAIL``
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
96
and ``EMAIL`` environment variables.  Generally, you would use this
2293.1.6 by Brad Crittenden
post review changes
97
method to override the email in a script context.  If you would like
98
to set a general default, then please see the ini methods above.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
99
2293.1.6 by Brad Crittenden
post review changes
100
Concerns about spam
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
101
-------------------
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
102
Some people want to avoid sharing their email address so as not to get
6622.1.24 by Jelmer Vernooij
More doc renames.
103
spam.  Breezy will never disclose your email address, unless you publish
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
104
a branch or changeset in a public location.  It's recommended that you
2293.1.3 by Brad Crittenden
Updated version_info.txt for grammar changes
105
*do* use a real address, so that people can contact you about your work,
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
106
but it's not required.  You can use an address which is obfuscated, which
107
bounces, or which goes through an anti-spam service such as
108
`spamgourmet.com`.