[MERGE] make init-repo use '.' as default location
Scott Scriven
bzr at toykeeper.net
Sat Jul 12 11:45:27 BST 2008
* Daniel Watkins <daniel at daniel-watkins.co.uk> wrote:
> I'd be more comfortable if you also added a test.
> Something like:
> def test_init_repo_no_given_dir(self):
> out, err = self.run_bzr("init-repository")
> dir = BzrDir.open('.')
> self.assertTrue(dir.open_repository())
> in bzrlib/tests/blackbox/test_shared_repository.py would do the
> trick nicely.
Thanks. I looked in test_init.py, and missed
test_shared_repository.py. Also, I'm not familiar with bzr's
python API, so this gave me a good excuse to learn a some of it.
The new bundle includes a working test.
-- Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default-init-repo-location.patch
Type: text/x-diff
Size: 4073 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080712/ae479192/attachment.bin
More information about the bazaar
mailing list