1.17: How to delete backup.bzr after remote branch upgrade in launchpad?

Jari Aalto jari.aalto at cante.net
Thu Jul 23 18:47:02 BST 2009


Aaron Bentley <aaron at aaronbentley.com> writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jari Aalto wrote:
>> Hi,
>> 
>> The upgrade of launchpad branch succeeded ok, but it leaves the
>> backup.bzr directory.
>> 
>> 1. How can I remove it?
>
> You can use an sftp client, or my bzr transport client, Hitchhiker,
> which is at lp:hitchhiker.

Any suggestions how to do this efficiently?

Working with the OpenSSH sftp(1), this is almost impossible task since
every file, every directory must be deleted individually.

    sftp login@<launchpad>:<dir>/
    ls -a
    cd backup.bzr
    cd <dir>
    cd <dir>
    cd <dir>
    rm file
    rm file
    ...

The "rm" and "rmdir" commands do not accept multiple arguments.
Imagine the job in knits/ directory.

Jari




More information about the bazaar mailing list