Feature request: new option --short to command "status"
Jari Aalto
jari.aalto at cante.net
Wed Dec 13 06:54:04 GMT 2006
Jos Backus <jos at catnook.com> writes:
> I don't mean to hijack this topic but what about `bzr status' having the
> ability to output YAML? Hence the result would be:
>
> ---
> - change: M
> filename: ChangeLog
> - change: M
> filename: README.txt
> - change: A
> filename: newfile.txt
> - change: D
> filename: deleted.txt
> - change: R
> filename: renamed.txt
> from_filename: renamed.txt
> - change: "?"
> filename: unknown.txt
> - change: C
> filename: conflict.txt
>
> It wouldn't help the shell case but would ease communication with other
> scripting languages.
The current "long" output can be parsed by indentation with algorithm:
repeat:
* Grab the TYPE of files. Map the TYPE to any data expression you
want for internal use.
* Gather the files indented by spaces
The biggest problem as you mentioned is the missing "short style"
a-la-svn/cvs that would be more parseable in interactive shell use
(grep and all that).
Jari
More information about the bazaar
mailing list