How to set append_revisions_only configuration option for branches in Launchpad?

Alexander Belchenko bialix at ukr.net
Mon Sep 1 15:48:14 BST 2008


John Arbash Meinel пишет:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alexander Belchenko wrote:
>> How to set append_revisions_only configuration option for branches in
>> Launchpad?
>> May be this option is not recommended to use?
> 
> I think it is recommended, it just hasn't been fleshed out. I would probably
> suggest such an option to be put on "bzr reconfigure" since that seems to be
> the command for this sort of thing.
> 
> At the moment, the only way to get a branch with that option is during "bzr init".
> 
> bzr init --append-revisions-only

Hm. I'm ever don't knew about this option.
But... The most obvious way to create branch on Launchpad it's the push, right?
So it won't work for most cases?

> 
> So you *could*:
> 
> 1) have launchpad delete the existing branch
> 2) bzr init --append-revisions-only lp:...
> 3) bzr push lp:...
> 
> Not exactly optimal.
> 
> The other way to do it is to use sftp and do:
> 
> sftp bazaar.launchpad.net
>> cd ~user/project/branch/.bzr/branch
>> get branch.conf
> 
> # outside of sftp, edit the file to add
> append_revisions_only = True
>> put branch.conf
> 
> Both are not very nice, it is just a feature that hasn't been fully fleshed
> out yet.

Yes, it's not very nice, because laucnhpad does not implement listdir, so
GUI SFTP clients don't work. Unfortunately your recipe does not work for me
with Putty's sftp client:

C:\Utils\PuTTY>psftp.exe bialix at bazaar.launchpad.net
Using username "bialix".
Remote working directory is /
psftp> cd ~qbzr-dev/qbzr/trunk/.bzr/branch
Directory /%7Eqbzr-dev/qbzr/trunk/.bzr/branch: no such file or directory
psftp> get branch.conf
/branch.conf: no such file or directory

What I'm doing wrong?




More information about the bazaar mailing list