VCS: Git
StatusStrict: 1
-StatusAllowedList: New
-StatusAllowedList: InProgress
-StatusAllowedList: Ongoing
-StatusAllowedList: Fixed
-StatusAllowedList: OnHold
-StatusAllowedList: Duplicate
-StatusAllowedList: Finished
-StatusAllowedList: Cancelled
StatusOpenList: New
StatusOpenList: InProgress
StatusOpenList: Ongoing
VCS: Git
StatusStrict: 1
- StatusAllowedList: New
- StatusAllowedList: InProgress
- StatusAllowedList: Finished
StatusOpenList: New
StatusOpenList: InProgress
StatusClosedList: Finished
an issue (after adding or editing) is also in the allowed list (see
StatusAllowedList).
-=item StatusAllowedList
-
-Default: empty, Type: List
-
-This list is checked against when adding or editing issues but only if you have
-StatusStrict on.
-
=item StatusOpenList
Default: empty, Type: List
This list is checked against when filtering with --is-closed.
+=item StatusAllowedList
+
+This list is automatically generated from the StatusOpenList and the
+StatusClosedList. It does not have to appear in the config file.
+
=item LabelStrict
Default: 0, Type: Boolean (0/1)
--- /dev/null
+Issue: 52d702df
+CreatedBy: Andrew Chilton <andychilton@gmail.com>
+Inserted: 2010-01-24T10:55:41
+Updated: 2010-01-24T10:56:09
+
+Hopefully I got everything. Removed from a number of places and changed in the
+main cil manpage.
Summary: The StatusOpenList and StatusClosedList should fully describe what is allowed
-Status: New
+Status: Finished
CreatedBy: Andrew Chilton <andychilton@gmail.com>
AssignedTo: Andrew Chilton <andychilton@gmail.com>
Label: Milestone-v0.07
+Comment: d49a551f
Inserted: 2010-01-23T13:14:45
-Updated: 2010-01-24T10:39:29
+Updated: 2010-01-24T10:56:40
If we make those two lists fully describe what status can be had, then we can
remove the StatusAllowedList from the .cil config file.
VCS => 'Null', # don't do anything for VCS hooks
};
-my @config_hashes = qw(StatusAllowed StatusOpen StatusClosed LabelAllowed);
+my @config_hashes = qw(StatusOpen StatusClosed LabelAllowed);
my $defaults_user = {
UserName => eval { Git->repository->config( 'user.name' ) } || 'UserName',
# set each config item
$self->IssueDir( $cfg->{IssueDir} );
+ # Status info
$self->StatusStrict( $cfg->{StatusStrict} );
- $self->StatusAllowed( $cfg->{StatusAllowed} );
$self->StatusOpen( $cfg->{StatusOpen} );
$self->StatusClosed( $cfg->{StatusClosed} );
+ # make the StatusAllowed list the sum of StatusOpen and StatusClosed
+ $self->StatusAllowed( { %{$cfg->{StatusOpen}}, %{$cfg->{StatusClosed}} } );
+
+ # Label Info
$self->LabelStrict( $cfg->{LabelStrict} );
$self->LabelAllowed( $cfg->{LabelAllowed} );
write_file($config, <<"CONFIG");
$VCSconfig
StatusStrict: 1
-StatusAllowedList: New
-StatusAllowedList: InProgress
-StatusAllowedList: Finished
StatusOpenList: New
StatusOpenList: InProgress
StatusClosedList: Finished