bzr status should show shelved changes
Bug #403687 reported by
Tim Powell
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Wishlist
|
Parth Malwankar |
Bug Description
It's difficult to know when there are shelved changes in a working tree unless you explicitly use bzr shelf list. It feels like it would be better to show files which have shelved changes using the bzr status command. A shelved change is conceptually a special type of "modified" file.
This fits in with Bug #330311 which desires a way to unshelve by filename. In many cases I want to know which files have shelved changes, but shelve wants to show me the changeset/
Shelf groups a set of changes as with a normal revision, but confusingly acts quite differently. Shouldn't a shelf act like any other revision?
Related branches
lp://staging/~parthm/bzr/403687-status-shows-shelves
Rejected
for merging
into
lp://staging/bzr
- Vincent Ladeuil: Needs Fixing
-
Diff: 232 lines (+92/-18)7 files modifiedNEWS (+2/-0)
bzrlib/builtins.py (+16/-18)
bzrlib/help_topics/__init__.py (+1/-0)
bzrlib/shelf.py (+21/-0)
bzrlib/status.py (+10/-0)
bzrlib/tests/blackbox/test_status.py (+25/-0)
bzrlib/tests/test_shelf.py (+17/-0)
lp://staging/~parthm/bzr/601749-status-options-show
- Martin Pool: Approve
- Alexander Belchenko: Approve
-
Diff: 240 lines (+160/-2)4 files modifiedNEWS (+4/-0)
bzrlib/hooks.py (+3/-1)
bzrlib/status.py (+85/-0)
bzrlib/tests/test_status.py (+68/-1)
lp://staging/~parthm/bzr/403687-shelve-summary-in-status
- Vincent Ladeuil: Approve
- Alexander Belchenko: Approve
-
Diff: 117 lines (+50/-4)4 files modifiedNEWS (+6/-1)
bzrlib/shelf.py (+3/-0)
bzrlib/status.py (+19/-3)
bzrlib/tests/blackbox/test_status.py (+22/-0)
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | nobody → Parth Malwankar (parthm) |
Changed in bzr: | |
milestone: | none → 2.3b2 |
status: | In Progress → Fix Released |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Powell wrote:
> Public bug reported:
>
> It's difficult to know when there are shelved changes in a working tree
> unless you explicitly use bzr shelf list. It feels like it would be
> better to show files which have shelved changes using the bzr status
> command. A shelved change is conceptually a special type of "modified"
> file.
Which set of shelved changes would you use to decide whether to
indicated it as modified?
Would you consider the case where shelved changes have already been
applied to the working tree, meaning that unshelving would not change
the file, despite there being shelved changes for that file?
I think it makes sense for status to indicate when there are shelved
changes, but that doesn't mean it should be done on a per-file basis.
Just "3 sets of changes have been shelved" would remind people of the
shelved changes.
> This fits in with Bug #330311 which desires a way to unshelve by patch/diff instead.
> filename. In many cases I want to know which files have shelved changes,
> but shelve wants to show me the changeset/
>
> Shelf groups a set of changes as with a normal revision, but confusingly
> acts quite differently. Shouldn't a shelf act like any other revision?
A shelf is more like a working tree than a revision. The format
supports all working tree states, including unversioned files. So no,
it's not a revision, and it shouldn't act like one.
Aaron enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkp ovB8ACgkQ0F+ nu1YWqI0/ lgCeIs8DpORAh4Y HgKH18LkvSFsC HpIdOMx5kwbEdy1 pJEe
LccAn3ncRvpv+
=vxPB
-----END PGP SIGNATURE-----