~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_init.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-13 18:11:45 UTC
  • mfrom: (2257.2.2 treeful-repositories)
  • mto: This revision was merged to the branch mainline in revision 2355.
  • Revision ID: john@arbash-meinel.com-20070313181145-k7jczddn8rnnlq5s
(Wouter van Heyst) switch 'bzr init-repo' to default to '--no-trees'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
97
97
 
98
98
    def test_init_existing_without_workingtree(self):
99
99
        # make a repository
100
 
        self.run_bzr('init-repo', '.')
 
100
        repo = self.make_repository('.', shared=True)
 
101
        repo.set_make_working_trees(False)
101
102
        # make a branch; by default without a working tree
102
103
        self.run_bzr('init', 'subdir')
103
104
        # fail