[MERGE] print info after init and init-repo

Marius Kruger amanic at gmail.com
Mon Jul 14 05:34:56 BST 2008


hi

I changed `bzr init` and `bzr init-repo` to print out
the same as `bzr info` if it completed successfully
(and if we're not in quiet mode)

I managed to get the tests to pass again (modelled after the info and pull
tests),
but I'm concerned about:
1) In <bzrlib/tests/commands/test_init.py> and
<bzrlib/tests/commands/test_init.py>
   I had to do the following:
-        self.assertEquals(1, len(self.connections))
+        self.assertEquals(2, len(self.connections))
   I'm not sure if this sort of thing is acceptable or how to properly fix
it,
   but I found it in one other place:
   bzrlib/tests/commands/test_branch.py:42:        self.assertEquals(2,
len(self.connections)

2) I might be leaking threads (probably because of 1),
   but I'm not sure how to fix it:
$ ./bzr --no-plugins selftest TestInit
testing: /stuph/projects/bzr/bzr.repo/bzr.work/bzr
   /stuph/projects/bzr/bzr.repo/bzr.work/bzrlib (1.6b3 python2.5.2)
----------------------------------------------------------------------
Ran 11 tests in 0.858s

OK
tests passed
bzrlib.tests.commands.test_init.TestInit.test_init is leaking threads among
2 leaking tests


I got the following test summary when running all tests.
----------------------------------------------------------------------
Ran 11866 tests in 783.212s

OK (known_failures=11)
744 tests skipped
Missing feature 'FTPServer' skipped 78 tests.
Missing feature 'Internally performed glob expansion' skipped 5 tests.
Missing feature '_winreg' skipped 2 tests.
Missing feature 'attrib Windows command-line tool' skipped 1 tests.
Missing feature 'bzrlib._dirstate_helpers_c' skipped 22 tests.
Missing feature 'bzrlib._knit_load_data_c' skipped 25 tests.
Missing feature 'bzrlib._patiencediff_c' skipped 10 tests.
Missing feature 'case-insensitive filesystem' skipped 2 tests.
tests passed
bzrlib.tests.blackbox.test_branch.TestRemoteBranch.test_branch_local_remote
is leaking threads among 1217 leaking tests
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20080714/d50c2eaf/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_verbose.patch
Type: text/x-diff
Size: 9064 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080714/d50c2eaf/attachment-0001.bin 


More information about the bazaar mailing list