Browsing Bazaar

Colin D Bennett colin at gibibit.com
Thu Jan 22 21:19:54 GMT 2009


On Thu, 22 Jan 2009 21:02:09 +0000
"A. S. Budden" <abudden at gmail.com> wrote:

> 2009/1/22 Gary van der Merwe <garyvdm at gmail.com>:
> > On Thu, Jan 22, 2009 at 8:52 PM, A. S. Budden <abudden at gmail.com> wrote:
> >> Also, if I use "bzr ls" on bzr://servername/applications/vim/vimfiles,
> >> I get a (rather unmanageable) recursive file listing.  If I add the
> >> --non-recursive option, I get nothing at all.  I can get round this
> >> with something like:
> >>
> >> bzr ls  bzr://localhost/applications/vim/vimfiles/  | grep
> >> 'bzr://localhost/applications/vim/vimfiles/[^/]*/\?$'
> >>
> >> but surely this shouldn't be necessary?!  It also doesn't distinguish
> >> files and directories (no '/' on the end of directories).  I realise
> >> that it can be done with the apache server option or by connecting to
> >> the server with ssh/sftp and browsing the file system, but this seems
> >> a little indirect and it is strange that the server has an 'ls'
> >> command but doesn't really support browsing.  Am I missing something?
> >
> > May I interest you in a GUI option. qbzr has the command qbrowse.
> 
> Thanks, I'll have a look at this!
> 
> > Matt Nordhoff wrote:
> >> The bzrtools plugin adds a "bzr branches" command which does what you
> >> want and can work on remote locations. However, it isn't fast, since the
> >> client walks the file system one directory at a time over the Internet
> >> (though the code is designed to make it easy to do it server-side in the
> > < future).
> >
> > If you are using the --no-trees option on your servers repo, this will
> > be allright.
> 
> This leads me directly onto another question that was occurring to me
> before (but my post was long enough already!)  I saw the --no-trees
> option in section 5.2 of the user guide, but I don't really know how
> to use it.  I'll explain: I created my repository with svn2bzr (as
> discussed in another thread), so I didn't ever "init-repo".  Is it
> possible to make a repository into a no-trees repository after
> creation, or would I have to edit svn2bzr.py?

Yes, the (unofficial) way to do this is to do

  touch MY_REPO_DIR/.bzr/repository/no-working-trees

which will make newly created branches without working trees, and then
you can use the 'bzr remove-tree' command on each existing branch in the
repository to remove its working tree.

The reason I say "unofficial" is because it is advised against to muck
with things in '.bzr'.  However, until the 'bzr reconfigure' command
supports '--trees' and '--no-trees', this is the only way I know of.

Regards,
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090122/e8948966/attachment.pgp 


More information about the bazaar mailing list