~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-15 06:28:48 UTC
  • mfrom: (3938.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090115062848-vl9tlzwnawaqht01
init prints more concise information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1506
1506
                raise errors.BzrCommandError('This branch format cannot be set'
1507
1507
                    ' to append-revisions-only.  Try --experimental-branch6')
1508
1508
        if not is_quiet():
1509
 
            from bzrlib.info import show_bzrdir_info
1510
 
            show_bzrdir_info(a_bzrdir, verbose=0, outfile=self.outf)
 
1509
            from bzrlib.info import describe_layout, describe_format
 
1510
            try:
 
1511
                tree = a_bzrdir.open_workingtree(recommend_upgrade=False)
 
1512
            except (errors.NoWorkingTree, errors.NotLocalUrl):
 
1513
                tree = None
 
1514
            repository = branch.repository
 
1515
            layout = describe_layout(repository, branch, tree).lower()
 
1516
            format = describe_format(a_bzrdir, repository, branch, tree)
 
1517
            self.outf.write("Created a %s (format: %s)\n" % (layout, format))
 
1518
            if repository.is_shared():
 
1519
                #XXX: maybe this can be refactored into transport.path_or_url()
 
1520
                url = repository.bzrdir.root_transport.external_url()
 
1521
                try:
 
1522
                    url = urlutils.local_path_from_url(url)
 
1523
                except errors.InvalidURL:
 
1524
                    pass
 
1525
                self.outf.write("Using shared repository: %s\n" % url)
1511
1526
 
1512
1527
 
1513
1528
class cmd_init_repository(Command):