A little less output for `bzr init` as discussed in recent thread.<br>(I didn't do init-repo yet, I can do that after this is accepted)<br>I also didn't add any new tests, I just fixed the existing ones. let me know if you need some.<br>
<br>the behavior is changed as follows:<br>=== current ===<br>$ bzr init /tmp/x<br>Standalone tree (format: pack-0.92)<br>Location:<br> branch root: x<br>=== new ===<br>
$ bzr init /tmp/x <br>Created a standalone tree (format: pack-0.92)<br><br>=== current ===<br>
$ bzr init-repo -q /tmp/r<br>$ bzr init /tmp/r/x<br>Repository tree (format: pack-0.92)<br>Location:<br> shared repository: r<br>
repository branch: r/x<br>$ bzr init sftp://guest@localhost/tmp/r/y<br>Repository branch (format: pack-0.92)<br>Location:<br> shared repository: sftp://guest@localhost/tmp/r/<br> repository branch: sftp://guest@localhost/tmp/r/y/<br>
<br>
=== new ===<br>$ bzr init-repo -q /tmp/r<br>$ bzr init /tmp/r/x<br>Created a repository tree (format: pack-0.92)<br>Using shared repository: /tmp/r/<br>$ bzr init sftp://guest@localhost/tmp/r/y<br>Created a repository branch (format: pack-0.92)<br>
Using shared repository: sftp://guest@localhost/tmp/r/<br><br>
<br><br>I added this:<br>
+#XXX: maybe this can be refactored into transport.path_or_url()<br>
+ url = repository.bzrdir.root_transport.external_url()<br>
+ try:<br>
+ url = urlutils.local_path_from_url(url)<br>
+ except errors.InvalidURL:<br>
+ pass<br>
Let me know if I should refactor this into transport.path_or_url(),<br>
or please just remove the comment when merging.<br><br>regards<br>marius<br>