[MERGE] `bzr init` will now print a little less verbose output.
Marius Kruger
amanic at gmail.com
Tue Jan 6 22:13:55 GMT 2009
A little less output for `bzr init` as discussed in recent thread.
(I didn't do init-repo yet, I can do that after this is accepted)
I also didn't add any new tests, I just fixed the existing ones. let me know
if you need some.
the behavior is changed as follows:
=== current ===
$ bzr init /tmp/x
Standalone tree (format: pack-0.92)
Location:
branch root: x
=== new ===
$ bzr init
/tmp/x
Created a standalone tree (format: pack-0.92)
=== current ===
$ bzr init-repo -q /tmp/r
$ bzr init /tmp/r/x
Repository tree (format: pack-0.92)
Location:
shared repository: r
repository branch: r/x
$ bzr init sftp://guest@localhost/tmp/r/y
Repository branch (format: pack-0.92)
Location:
shared repository: sftp://guest@localhost/tmp/r/
repository branch: sftp://guest@localhost/tmp/r/y/
=== new ===
$ bzr init-repo -q /tmp/r
$ bzr init /tmp/r/x
Created a repository tree (format: pack-0.92)
Using shared repository: /tmp/r/
$ bzr init sftp://guest@localhost/tmp/r/y
Created a repository branch (format: pack-0.92)
Using shared repository: sftp://guest@localhost/tmp/r/
I added this:
+#XXX: maybe this can be refactored into transport.path_or_url()
+ url = repository.bzrdir.root_transport.external_url()
+ try:
+ url = urlutils.local_path_from_url(url)
+ except errors.InvalidURL:
+ pass
Let me know if I should refactor this into transport.path_or_url(),
or please just remove the comment when merging.
regards
marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090107/bce62fe6/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20090107000556-bzr.init_output.patch
Type: text/x-patch
Size: 8404 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090107/bce62fe6/attachment-0001.bin
More information about the bazaar
mailing list