When push can't create a working tree, some basic info should be made available

Bug #44663 reported by Jeff Bailey
12
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned
Breezy
Triaged
Wishlist
Unassigned

Bug Description

Right now, if a repository is pushed over a transport (such as sftp) where the working tree cannot be created, there is no information placed in the directory to help a human who comes across this tree.

It would be nice if a README file were placed in that directory that contained either a generic message saying that this directory contains a bzr tree, or ideally, a commit history of some sort.

Tks,
Jeff Bailey

Tags: push
Revision history for this message
John Dong (jdong) wrote :

I agree; especially on HTTP trees, the "seemingly blank folder, what the hell do I do now" look is very deceiving and confusing especially to new bzr users. A simple README in the working tree would be great, something that states:

* This is a Bazaar-NG branch, stored in a bazaar repository format
* The contents of this repository cannot be viewed with a web browser
* To retrieve a copy of this branch, use "bzr branch <url>"
* See http://bazaar-vcs.org/ for more information

Revision history for this message
Pavel Šimerda (pavlix) wrote :

"where the working tree cannot be created"

Why can't you create and update working tree using push (I mean with an option like --force-tree)? It would allow you to use bzr e.g. on webhosting services.

Revision history for this message
Wouter van Heyst (larstiq) wrote : Re: [Bug 44663] Re: When push can't create a working tree, some basic info should be made available

On Wed, Jul 19, 2006 at 01:45:27PM -0000, Pavel Šimerda wrote:
> "where the working tree cannot be created"
>
> Why can't you create and update working tree using push (I mean with an
> option like --force-tree)? It would allow you to use bzr e.g. on
> webhosting services.

The arguments I recall (please speak up if there are more) are
basically:

 - it's hard to detect changes in the remote workingtree and do the
   right merging magic.
 - pushing the workingtree is a lot of duplicate data.

For the webhosting use case, having an option to just throw away the
workingtree and push everything again might be satisfactory. Shouldn't
be too hard to write a plugin for.

Wouter van Heyst

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 44663] Re: [Bug 44663] Re: When push can't create a working tree, some basic info should be made available

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wouter van Heyst wrote:
> On Wed, Jul 19, 2006 at 01:45:27PM -0000, Pavel Šimerda wrote:
>> "where the working tree cannot be created"
>>
>> Why can't you create and update working tree using push (I mean with an
>> option like --force-tree)? It would allow you to use bzr e.g. on
>> webhosting services.
>
> The arguments I recall (please speak up if there are more) are
> basically:
>
> - it's hard to detect changes in the remote workingtree and do the
> right merging magic.
> - pushing the workingtree is a lot of duplicate data.
>
> For the webhosting use case, having an option to just throw away the
> workingtree and push everything again might be satisfactory. Shouldn't
> be too hard to write a plugin for.
>
> Wouter van Heyst
>

If they allow sftp, we already have rsync plugins that can do this.

If they only allow ftp... I think we can do it. list_dir() over ftp is a
little bit iffy, since 'ls' can return filenames in all sorts of ways.

Because if you want to overwrite the working tree, you have to wipe out
what is already there, before you upload new stuff.

But yes, it should be possible, probably not in core, though.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEvkbMJdeBCYSNAAMRAiXiAKCZes6g3bfaP1pU80C5xbp0H/EgAQCbByqi
oEDY/QTTbuqpj6/pRdvPBiw=
=3B4s
-----END PGP SIGNATURE-----

Jelmer Vernooij (jelmer)
Changed in bzr:
status: Unconfirmed → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: push
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.