~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2005-10-14 01:59:24 UTC
  • mfrom: (1442.1.6)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014015924-3149bd0ff5e56a90
merge current config support - classes split out

Show diffs side-by-side

added added

removed removed

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