Discussion:
Patch for default values and easier `dt new`
David Wolever
2008-06-23 13:02:05 UTC
Permalink
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

Loading...