Patch for default values and easier `dt new`

David Wolever wolever at cs.toronto.edu
Mon Jun 23 06:02:05 PDT 2008


As promised, here is a patch which adds a 'Default' field in category  
definitions and a splat prefix to versions (1 *2 / *3 4 / 5 *6) to  
specify defaults, which are then used with the new command.

To give it a try, apply the patch (patch -p1 < default_values.diff)  
then run `dt new`.
The X-Available-* headers are added to help figure out what's  
available, and the Category, Reported-for and Due-in headers can all  
be set, along with the description and title.

I've done what I think is the Right Thing if any of the values are  
missing/incorrect -- give it a try for yourself to make sure I'm not  
crazy.

The only backwards-incompatible change I've introduced is that I've  
lifted the restriction that there must be exactly three version  
classes (past, current, future).  More than three is still an error,  
but if there are fewer than three, the last one is repeated until  
there are three (eg, 'a' becomes 'a / a / a' and 'a / b' becomes 'a /  
b / b').
If this is horribly offensive (which, as I think about it now, I  
realize it probably is) , please forgive me (and revert that bit).

What do you think?

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: default_values.diff
Type: application/octet-stream
Size: 14410 bytes
Desc: not available
Url : http://lists.ditrack.org/pipermail/dev/attachments/20080623/b1331837/attachment.obj 


More information about the Dev mailing list