should be able to unshelve specific files

Bug #330311 reported by Wesley J. Landaker
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Almost every bzr operation can operate on individual files, e.g. add, rm, log, diff, commit, revert, etc. The shelve command is no different, as it can take a list of files to shelve. However, the unshelve command is very different, and it's currently possible to unshelve a single or group of file's changes. It seems like this should be possible.

One big driving scenario where this would be useful is when you have a large tree full of changes, and you run a "shelve --all" to put them all on the shelf. Then you want to pull out the changes on individual files or groups of files and work on them individually. Currently this is impossible, unless you unshelve everything and re-shelve everything you DON'T want. When working with hundreds of files, this is very impractical.

Revision history for this message
John A Meinel (jameinel) wrote :

I think this would be good, but it would be a bit complex to do. Mostly because you need to stage a new shelve-item which is the difference between what you actually unshelved, and what was left behind.

Changed in bzr:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Vincent Ladeuil (vila) wrote :

Until that is implemented, I think you already pointed out a work-around: shelve selectively so that you can unshelve the way you want.

I realized that this is not the workflow you want, but it should be close enough in the mean time.

Revision history for this message
Robert Collins (lifeless) wrote :

Its really nowhere near as convenient.

While you can do
bzr unshelve
bzr shelve [select all but one hunk]

being able to do
bzr unshelve filename
or
bzr unshelve -i

would be a lot more convenient. I think this should be more than wishlist.

Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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