Please add a rm command

Bug #617653 reported by Benjamin Drung
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
bzr-builder
Triaged
Wishlist
Unassigned

Bug Description

Please add a remove command that works similar to 'run rm -rf'. This command should only delete files in the branch directory. 'rm ../foo' should not be allowed. The remove command could be mapped on 'bzr rm'.

My use case is to get the latest upstream trunk branch, bundle it with the latest Ubuntu packaging branch, and remove all Ubuntu patches. Here's the corresponding recipe:

# bzr-builder format 0.3 deb-version {debupstream}+svn{date}+r{revno}-0
lp:audacity
nest-part packaging lp:ubuntu/audacity debian debian
run rm -rf debian/patches

Benjamin Drung (bdrung)
description: updated
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

You can merge in a branch that does removes. Would that take care of your use case?

Changed in bzr-builder:
status: New → Incomplete
Revision history for this message
Benjamin Drung (bdrung) wrote :

Not really. The rm command is universal. The branch that does the removal needs to be updated frequently.

Benjamin Drung (bdrung)
Changed in bzr-builder:
status: Incomplete → New
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I have another use case which is to build from a branch that already has a debian/ structure, but I want to use my own from another packaging-only branch. Something like:

# bzr-builder format 0.3 deb-version {debupstream}+{revno}-0landscape1~{revno:packaging}
lp:txaws
nest-part packaging lp:~landscape/txaws/txaws-landscape-package debian debian

But a local "debian/" already exists, and the packaging branch only has "debian/". So I can't use merge, nor would I want to keep updating the packaging branch with code changes all the time.

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.