~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
create_signatures - this option controls whether bzr will always create 
50
50
                    gpg signatures, never create them, or create them if the
51
51
                    branch is configured to require them.
52
 
log_format - this option sets the default log format.  Possible values are
53
 
             long, short, line, or a plugin can register new formats.
 
52
log_format - This options set the default log format.  Options are long, 
 
53
             short, line, or a plugin can register new formats
54
54
 
55
55
In bazaar.conf you can also define aliases in the ALIASES sections, example
56
56
 
167
167
    
168
168
        Something similar to 'Martin Pool <mbp@sourcefrog.net>'
169
169
        
170
 
        $BZR_EMAIL can be set to override this (as well as the
171
 
        deprecated $BZREMAIL), then
 
170
        $BZREMAIL can be set to override this, then
172
171
        the concrete policy type is checked, and finally
173
172
        $EMAIL is examined.
174
173
        If none is found, a reasonable default is (hopefully)
176
175
    
177
176
        TODO: Check it's reasonably well-formed.
178
177
        """
179
 
        v = os.environ.get('BZR_EMAIL')
180
 
        if v:
181
 
            return v.decode(bzrlib.user_encoding)
182
178
        v = os.environ.get('BZREMAIL')
183
179
        if v:
184
 
            warning('BZREMAIL is deprecated in favor of BZR_EMAIL. Please update your configuration.')
185
180
            return v.decode(bzrlib.user_encoding)
186
181
    
187
182
        v = self._get_user_id()