~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: 2006-04-04 01:48:51 UTC
  • mfrom: (1634.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060404014851-ae9a2babfd810da1
Merge Erik Bagfors --trees option for init-repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
902
902
                            ' option only accepts "metadir" and "knit"'
903
903
                            ' WARNING: the knit format is currently unstable'
904
904
                            ' and only for experimental use.',
905
 
                            type=get_format_type)]
 
905
                            type=get_format_type),
 
906
                     Option('trees',
 
907
                             help='Allows branches in repository to have'
 
908
                             ' a working tree')]
906
909
    aliases = ["init-repo"]
907
 
    def run(self, location, format=None):
 
910
    def run(self, location, format=None, trees=False):
908
911
        from bzrlib.bzrdir import BzrDirMetaFormat1
909
912
        from bzrlib.transport import get_transport
910
913
        if format is None:
912
915
        get_transport(location).mkdir('')
913
916
        newdir = format.initialize(location)
914
917
        repo = newdir.create_repository(shared=True)
915
 
        repo.set_make_working_trees(False)
 
918
        repo.set_make_working_trees(trees)
916
919
 
917
920
 
918
921
class cmd_diff(Command):