# Bazaar revision bundle v0.8 # # message: # Fix Bug #53483. # # * bzrlib/tests/blackbox/test_shared_repository.py: # (TestSharedRepo.test_init): Call init-repo with '--no-trees'. # # * bzrlib/tests/blackbox/test_init.py: # (TestInit.test_init_existing_without_workingtree): Call init-repo # with '--no-trees'. # # * bzrlib/builtins.py: # (cmd_init_repository): Deafult trees to True. # # committer: v.ladeuil+lp@free.fr # date: Sun 2006-12-17 17:36:10.410000086 +0100 === modified file NEWS --- NEWS +++ NEWS @@ -82,6 +82,7 @@ anymore). Defining a proper ProxyHandler solves the problem. (Vincent Ladeuil, #74759) + * initi-repo now defaults to --trees. (Vincent Ladeuil, #53483) bzr 0.13 2006-12-05 === modified file bzrlib/builtins.py --- bzrlib/builtins.py +++ bzrlib/builtins.py @@ -1140,9 +1140,9 @@ class cmd_init_repository(Command): """Create a shared repository to hold branches. - New branches created under the repository directory will store their revisions - in the repository, not in the branch directory, if the branch format supports - shared storage. + New branches created under the repository directory will + store their revisions in the repository, not in the branch + directory, if the branch format supports shared storage. example: bzr init-repo repo @@ -1162,7 +1162,7 @@ help='Allows branches in repository to have' ' a working tree')] aliases = ["init-repo"] - def run(self, location, format=None, trees=False): + def run(self, location, format=None, trees=True): if format is None: format = get_format_type('default') === modified file bzrlib/tests/blackbox/test_init.py --- bzrlib/tests/blackbox/test_init.py +++ bzrlib/tests/blackbox/test_init.py @@ -93,7 +93,7 @@ def test_init_existing_without_workingtree(self): # make a repository - self.run_bzr('init-repo', '.') + self.run_bzr('init-repo', '--no-trees', '.') # make a branch; by default without a working tree self.run_bzr('init', 'subdir') # fail === modified file bzrlib/tests/blackbox/test_shared_repository.py --- bzrlib/tests/blackbox/test_shared_repository.py +++ bzrlib/tests/blackbox/test_shared_repository.py @@ -44,7 +44,7 @@ self.assertTrue(dir.open_repository()) def test_init(self): - self.run_bzr("init-repo", "a") + self.run_bzr("init-repo", "--no-trees", "a") self.run_bzr("init", "--format=default", "a/b") dir = bzrlib.bzrdir.BzrDir.open('a') self.assertIs(dir.open_repository().is_shared(), True) === modified directory // last-changed:v.ladeuil+lp@free.fr-20061217163610-5vs ... k92azu1tjp9ho # revision id: v.ladeuil+lp@free.fr-20061217163610-5vsk92azu1tjp9ho # sha1: 62f0a6964a51bf32beb3e9906b8e34ce39e4bea0 # inventory sha1: 0c31c1cf71b7db63cce556953e3feb8eda1e574a # parent ids: # pqm@pqm.ubuntu.com-20061215154202-8f239c218ab6fe7d # base id: pqm@pqm.ubuntu.com-20061215154202-8f239c218ab6fe7d # properties: # branch-nick: bzr.53483