~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Parth Malwankar
  • Date: 2010-04-27 16:50:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5213.
  • Revision ID: parth.malwankar@gmail.com-20100427165018-t8uuuj41hkipdh9t
init and init-repo now fail before creating dir if username is not set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1726
1726
         ]
1727
1727
    def run(self, location=None, format=None, append_revisions_only=False,
1728
1728
            create_prefix=False):
 
1729
        c = config.GlobalConfig()
 
1730
        c.ensure_username()
 
1731
 
1729
1732
        if format is None:
1730
1733
            format = bzrdir.format_registry.make_bzrdir('default')
1731
1734
        if location is None:
1835
1838
    aliases = ["init-repo"]
1836
1839
 
1837
1840
    def run(self, location, format=None, no_trees=False):
 
1841
        c = config.GlobalConfig()
 
1842
        c.ensure_username()
 
1843
 
1838
1844
        if format is None:
1839
1845
            format = bzrdir.format_registry.make_bzrdir('default')
1840
1846