How to set append_revisions_only configuration option for branches in Launchpad?
John Arbash Meinel
john at arbash-meinel.com
Mon Sep 1 16:09:51 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko wrote:
> 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?
It seems that they don't allow "CD". So I was able to do:
sftp bazaar.launchpad.net
> get ~bzr/bzr/trunk/.bzr/branch/format
but I was not able to do any form of
> cd ~bzr
> cd ~bzr/bzr/trunk
> cd ~bzr/bzr/trunk/.bzr/branch/
So it seems the correct way is:
> get ~qbzr-dev/qbzr/trunk/.bzr/branch/branch.conf
#edit
> put format ~qbzr-dev/qbzr/trunk/.bzr/branch/branch.conf
Probably hitchhiker works because it does the "CD" on the local side (because
that is how bzr's Transport itself works.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIvAW/JdeBCYSNAAMRAtXIAJ9Su0U32/k0xdSdEJf2+tHdEMqQoACdHbfZ
zR8z5pUST9aWvIzo9ayMBu8=
=TUFs
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list