Overview
SHA1 Hash: | 89d100b8451bda7fcf82acdbb70999d866175900 |
---|---|
Date: | 2008-10-31 14:01:16 |
User: | drh |
Comment: | Make the "ls" command report MISSING instead of EDITED for files that do
not exist in the tree. Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/checkin.c from [efd09b5c80] to [ad8e78b43e].
@@ -134,19 +134,23 @@ while( db_step(&q)==SQLITE_ROW ){ const char *zPathname = db_column_text(&q,0); int isDeleted = db_column_int(&q, 1); int isNew = db_column_int(&q,2)==0; int chnged = db_column_int(&q,3); + char *zFullName = mprintf("%s/%s", g.zLocalRoot, zPathname); if( isNew ){ printf("ADDED %s\n", zPathname); + }else if( access(zFullName, 0) ){ + printf("MISSING %s\n", zPathname); }else if( isDeleted ){ printf("DELETED %s\n", zPathname); }else if( chnged ){ printf("EDITED %s\n", zPathname); }else{ printf("UNCHANGED %s\n", zPathname); } + free(zFullName); } db_finalize(&q); } /*