bzr shelve should have --keep

Bug #712449 reported by Per Johansson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

One use case of the git staging area is where you stage your basic implementation of a feature, but then continue to work and try some changes that might or might not make it in. bzr could emulate this much better if bzr shelve has a keep option, eg:

<Work on basic implementation>
bzr shelve --all --keep
<Try an optimisation, which didn't work out>
bzr revert ; bzr unshelve
bzr ci -m "Feature A"

Since unshelve does have --keep, that can be used as a workaround, though it unnecessarily modifies the working tree.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 712449] [NEW] bzr shelve should have --keep

Per Johansson пишет:
> Public bug reported:
>
> One use case of the git staging area is where you stage your basic
> implementation of a feature, but then continue to work and try some
> changes that might or might not make it in. bzr could emulate this much
> better if bzr shelve has a keep option, eg:
>
> <Work on basic implementation>
> bzr shelve --all --keep
> <Try an optimisation, which didn't work out>
> bzr revert ; bzr unshelve
> bzr ci -m "Feature A"
>
> Since unshelve does have --keep, that can be used as a workaround,
> though it unnecessarily modifies the working tree.

I agree. So, there is workaround already, but it will be nice to have
such feature.

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

Well, what you exposed can be achieved with:
<Work on basic implementation>
bzr commit -m 'Feature A'
<Try an optimisation, which didn't work out>
bzr revert

But that doesn't allow committing the nice optimisation when it works ! So:
<Work on basic implementation>
bzr commit -m 'Feature A'
<Try an optimisation, which works out, so don't even mention the first attempt>
bzr uncommit
bzr ci -m "Feature A"

But anyway, --keep for shelve is a good idea and shouldn't be hard to implement.

Changed in bzr:
importance: Low → High
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → High
importance: High → Low
tags: removed: 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.