kind marker in status should be optional and or check isatty()
Bug #112390 reported by
James Troup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin von Gagern |
Bug Description
I often want to commit a subset of files, which are all trivially grepable by name, and do things like:
bzr commit -m "FOO BAZ OIDENTD" $(bzr st | grep oidentd)
which is great, except when there are symlinks in the status output. It'd be nice if bzr status' ls -F-isms could be disabled, either by a command line option or because the code did an isatty() check before turning them on (as ls does).
Related branches
lp:~gagern/bzr/bug112390-kind-marker-optional
- John A Meinel: Approve
-
Diff: 187 lines (+35/-14)3 files modifiedbzrlib/builtins.py (+11/-5)
bzrlib/delta.py (+15/-5)
bzrlib/status.py (+9/-4)
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | Unconfirmed → Confirmed |
Changed in bzr: | |
status: | Confirmed → Fix Released |
assignee: | nobody → Martin von Gagern (gagern) |
To post a comment you must log in.
Thanks for the report.
In this particular case you can do
bzr commit -m FOO $(bzr ls |grep oidentd)
this will pick up some unmodifed files, but commit should happily ignore them.
Switching on isatty can be confusing for people trying to write scripts so we're a bit reluctant to make that the only way to control things.
In a discussion on the list there was some suggestion that adding an option 'bzr ls --modified' would be the best way to generate a list of files for a case like this.