843
844
845
846
847
848
849
850
851
852
853
854
855
856
|
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
|
+
|
** Run various subcommands to control tickets
**
** %fossil ticket show (REPORTTITLE|REPORTNR) ?TICKETFILTER? ?options?
**
** options can be:
** ?-l|--limit LIMITCHAR?
** ?-q|--quote?
** ?-R|--repository FILE?
**
** Run the ticket report, identified by the report format title
** used in the gui. The data is written as flat file on stdout,
** using "," as separator. The seperator "," can be changed using
** the -l or --limit option.
** If TICKETFILTER is given on the commandline, the query is
** limited with a new WHERE-condition.
|
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
|
902
903
904
905
906
907
908
909
910
911
912
913
914
915
|
-
|
** All this stuff can also be done in the gui:
** * Go the the <a href="reportlist">Tickets</a> page
*/
void ticket_cmd(void){
int n;
/* do some ints, we want to be inside a checkout */
db_must_be_within_tree();
db_find_and_open_repository(1);
user_select();
/*
** Check that the user exists.
*/
if( !db_exists("SELECT 1 FROM user WHERE login=%Q", g.zLogin) ){
fossil_fatal("no such user: %s", g.zLogin);
|