~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:56:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1453.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014015608-2970671a76324ad8
first stage major overhaul of configs, giving use BranchConfigs, LocationConfigs and GlobalConfigs

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):