| | @@ -908,20 +908,15 @@ |
| 908 | 908 | zWhere /*safe-for-%s*/ |
| 909 | 909 | ); |
| 910 | 910 | } |
| 911 | 911 | |
| 912 | 912 | /* |
| 913 | | -** COMMAND: test-describe-artifacts |
| 914 | | -** |
| 915 | | -** Usage: %fossil test-describe-artifacts |
| 916 | | -** |
| 917 | | -** Display a one-line description of every artifact. |
| 913 | +** Print the content of the description table on stdout |
| 918 | 914 | */ |
| 919 | | -void test_describe_artifacts_cmd(void){ |
| 915 | +void describe_artifacts_to_stdout(const char *zWhere){ |
| 920 | 916 | Stmt q; |
| 921 | | - db_find_and_open_repository(0,0); |
| 922 | | - describe_artifacts("IN (SELECT rid FROM blob)"); |
| 917 | + describe_artifacts(zWhere); |
| 923 | 918 | db_prepare(&q, |
| 924 | 919 | "SELECT rid, uuid, datetime(ctime,'localtime'), type, detail\n" |
| 925 | 920 | " FROM description\n" |
| 926 | 921 | " ORDER BY rid;" |
| 927 | 922 | ); |
| | @@ -931,15 +926,26 @@ |
| 931 | 926 | db_column_text(&q,1), db_column_text(&q,3)); |
| 932 | 927 | if( db_column_bytes(&q,4)>0 ){ |
| 933 | 928 | fossil_print(" %s", db_column_text(&q,4)); |
| 934 | 929 | } |
| 935 | 930 | if( db_column_bytes(&q,2)>0 |
| 936 | | - && fossil_strcmp(zType,"file")!=0 |
| 937 | | - && fossil_strcmp(zType,"ticket")!=0 |
| 938 | | - && fossil_strcmp(zType,"event")!=0 |
| 931 | + && fossil_strcmp(zType,"checkin")==0 |
| 939 | 932 | ){ |
| 940 | 933 | fossil_print(" %s", db_column_text(&q,2)); |
| 941 | 934 | } |
| 942 | 935 | fossil_print("\n"); |
| 943 | 936 | } |
| 944 | 937 | db_finalize(&q); |
| 938 | + |
| 939 | +} |
| 940 | + |
| 941 | +/* |
| 942 | +** COMMAND: test-describe-artifacts |
| 943 | +** |
| 944 | +** Usage: %fossil test-describe-artifacts |
| 945 | +** |
| 946 | +** Display a one-line description of every artifact. |
| 947 | +*/ |
| 948 | +void test_describe_artifacts_cmd(void){ |
| 949 | + db_find_and_open_repository(0,0); |
| 950 | + describe_artifacts_to_stdout("IN (SELECT rid FROM blob)"); |
| 945 | 951 | } |
| 946 | 952 | |