~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: abentley
  • Date: 2005-10-16 05:15:58 UTC
  • mfrom: (1457)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051016051558-502eb6c3601ceb90
Merged Robert's latest

Show diffs side-by-side

added added

removed removed

Lines of Context:
1099
1099
    def run(self, email=False):
1100
1100
        try:
1101
1101
            b = bzrlib.branch.Branch.open_containing('.')
 
1102
            config = bzrlib.config.BranchConfig(b)
1102
1103
        except NotBranchError:
1103
 
            b = None
 
1104
            config = bzrlib.config.GlobalConfig()
1104
1105
        
1105
1106
        if email:
1106
 
            print bzrlib.config.user_email(b)
 
1107
            print config.user_email()
1107
1108
        else:
1108
 
            print bzrlib.config.username(b)
 
1109
            print config.username()
1109
1110
 
1110
1111
 
1111
1112
class cmd_selftest(Command):