[Bps-public-commit] r17666 - in sd/trunk: .
spang at bestpractical.com
spang at bestpractical.com
Fri Jan 9 06:35:47 EST 2009
Author: spang
Date: Fri Jan 9 06:35:41 2009
New Revision: 17666
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/CLI/Command/Ticket/Show.pm
Log:
r53427 at loki: spang | 2009-01-09 11:08:53 +0200
implement --skip-history/--show-history args to sd ticket show (and config option to turn off showing history by default
Modified: sd/trunk/lib/App/SD/CLI/Command/Ticket/Show.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Command/Ticket/Show.pm (original)
+++ sd/trunk/lib/App/SD/CLI/Command/Ticket/Show.pm Fri Jan 9 06:35:41 2009
@@ -35,8 +35,15 @@
}
}
- print "\n= HISTORY\n\n";
- print $record->history_as_string;
+ # allow user to not display history by specifying the --skip-history
+ # arg or setting disable_ticket_show_history_by_default config item to a
+ # true value (can be overridden with --show-history)
+ if (!$self->has_arg('skip-history') && (!$self->app_handle->config->get(
+ 'disable_ticket_show_history_by_default') ||
+ $self->has_arg('show-history'))) {
+ print "\n= HISTORY\n\n";
+ print $record->history_as_string;
+ }
};
__PACKAGE__->meta->make_immutable;
More information about the Bps-public-commit
mailing list