darcs

Issue 2085 wish: darcs changes formatting options

Title wish: darcs changes formatting options
Priority wishlist Status needs-diagnosis/design
Milestone Resolved in
Superseder Nosy List owst
Assigned To
Topics

Created on 2011-07-05.10:23:58 by owst, last changed 2012-12-17.18:54:40 by markstos.

Messages
msg14570 (view) Author: owst Date: 2011-07-05.10:23:57
Currently, the only non-default way to format the output of changes is
-s or --xml-format.

I would like to be able to say (as I can with Git) things such as:
darcs cha --format (oneline | author | full | CUSTOM) 
where CUSTOM is some format-string in the style of printf. 

One obvious use case is to easily generate a list of authors who have
touched a given file, or a one line line summary of each change to a file.
msg16427 (view) Author: markstos Date: 2012-12-17.18:54:38
A particular variation that I would find useful is to list all the files 
touched in a plain format. I currently use this script to get all the 
file names for a list of changes instead:

darcs changes -p $@ --summary | grep '\./'  | cut -d ' ' -f 6 | sort -u

It produces a result like this:

./www/css/project.css
./www/css/jquery.ibutton.css

I'm updating the status to be "needs-design". Please propose a detailed 
spec here.
History
Date User Action Args
2011-07-05 10:23:58owstcreate
2012-12-17 18:54:40markstossetstatus: unknown -> needs-diagnosis/design
messages: + msg16427