Fossil SCM

Merge change by Benoit Mortgat into the trunk.

drh 2010-07-30 00:16 trunk merge
Commit e3fb8dc36cf9354c8bb25da32aec3683917f7853
+7 -3
--- src/add.c
+++ src/add.c
@@ -39,12 +39,16 @@
3939
file_tree_name(zName, &pathname, 1);
4040
zPath = blob_str(&pathname);
4141
if( strcmp(zPath, "manifest")==0
4242
|| strcmp(zPath, "_FOSSIL_")==0
4343
|| strcmp(zPath, "_FOSSIL_-journal")==0
44
+ || strcmp(zPath, "_FOSSIL_-wal")==0
45
+ || strcmp(zPath, "_FOSSIL_-shm")==0
4446
|| strcmp(zPath, ".fos")==0
4547
|| strcmp(zPath, ".fos-journal")==0
48
+ || strcmp(zPath, ".fos-wal")==0
49
+ || strcmp(zPath, ".fos-shm")==0
4650
|| strcmp(zPath, "manifest.uuid")==0
4751
|| blob_compare(&pathname, pOmit)==0
4852
){
4953
fossil_warning("cannot add %s", zPath);
5054
}else{
@@ -223,22 +227,22 @@
223227
blob_reset(&path);
224228
}
225229
226230
/*
227231
** COMMAND: rm
228
-** COMMAND: del
232
+** COMMAND: delete
229233
**
230234
** Usage: %fossil rm FILE...
231
-** or: %fossil del FILE...
235
+** or: %fossil delete FILE...
232236
**
233237
** Remove one or more files from the tree.
234238
**
235239
** This command does not remove the files from disk. It just marks the
236240
** files as no longer being part of the project. In other words, future
237241
** changes to the named files will not be versioned.
238242
*/
239
-void del_cmd(void){
243
+void delete_cmd(void){
240244
int i;
241245
int vid;
242246
243247
db_must_be_within_tree();
244248
vid = db_lget_int("checkout", 0);
245249
--- src/add.c
+++ src/add.c
@@ -39,12 +39,16 @@
39 file_tree_name(zName, &pathname, 1);
40 zPath = blob_str(&pathname);
41 if( strcmp(zPath, "manifest")==0
42 || strcmp(zPath, "_FOSSIL_")==0
43 || strcmp(zPath, "_FOSSIL_-journal")==0
 
 
44 || strcmp(zPath, ".fos")==0
45 || strcmp(zPath, ".fos-journal")==0
 
 
46 || strcmp(zPath, "manifest.uuid")==0
47 || blob_compare(&pathname, pOmit)==0
48 ){
49 fossil_warning("cannot add %s", zPath);
50 }else{
@@ -223,22 +227,22 @@
223 blob_reset(&path);
224 }
225
226 /*
227 ** COMMAND: rm
228 ** COMMAND: del
229 **
230 ** Usage: %fossil rm FILE...
231 ** or: %fossil del FILE...
232 **
233 ** Remove one or more files from the tree.
234 **
235 ** This command does not remove the files from disk. It just marks the
236 ** files as no longer being part of the project. In other words, future
237 ** changes to the named files will not be versioned.
238 */
239 void del_cmd(void){
240 int i;
241 int vid;
242
243 db_must_be_within_tree();
244 vid = db_lget_int("checkout", 0);
245
--- src/add.c
+++ src/add.c
@@ -39,12 +39,16 @@
39 file_tree_name(zName, &pathname, 1);
40 zPath = blob_str(&pathname);
41 if( strcmp(zPath, "manifest")==0
42 || strcmp(zPath, "_FOSSIL_")==0
43 || strcmp(zPath, "_FOSSIL_-journal")==0
44 || strcmp(zPath, "_FOSSIL_-wal")==0
45 || strcmp(zPath, "_FOSSIL_-shm")==0
46 || strcmp(zPath, ".fos")==0
47 || strcmp(zPath, ".fos-journal")==0
48 || strcmp(zPath, ".fos-wal")==0
49 || strcmp(zPath, ".fos-shm")==0
50 || strcmp(zPath, "manifest.uuid")==0
51 || blob_compare(&pathname, pOmit)==0
52 ){
53 fossil_warning("cannot add %s", zPath);
54 }else{
@@ -223,22 +227,22 @@
227 blob_reset(&path);
228 }
229
230 /*
231 ** COMMAND: rm
232 ** COMMAND: delete
233 **
234 ** Usage: %fossil rm FILE...
235 ** or: %fossil delete FILE...
236 **
237 ** Remove one or more files from the tree.
238 **
239 ** This command does not remove the files from disk. It just marks the
240 ** files as no longer being part of the project. In other words, future
241 ** changes to the named files will not be versioned.
242 */
243 void delete_cmd(void){
244 int i;
245 int vid;
246
247 db_must_be_within_tree();
248 vid = db_lget_int("checkout", 0);
249
+6 -2
--- src/checkin.c
+++ src/checkin.c
@@ -271,11 +271,13 @@
271271
}
272272
vfile_scan(0, &path, blob_size(&path), allFlag);
273273
db_prepare(&q,
274274
"SELECT x FROM sfile"
275275
" WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
276
- "'_FOSSIL_-journal','.fos','.fos-journal')"
276
+ "'_FOSSIL_-journal','.fos','.fos-journal',"
277
+ "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
278
+ "'.fos-shm')"
277279
" AND NOT %s"
278280
" ORDER BY 1",
279281
glob_expr("x", zIgnoreFlag)
280282
);
281283
if( file_tree_name(g.zRepositoryName, &repo, 0) ){
@@ -317,11 +319,13 @@
317319
blob_init(&path, g.zLocalRoot, n-1);
318320
vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
319321
db_prepare(&q,
320322
"SELECT %Q || x FROM sfile"
321323
" WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
322
- "'_FOSSIL_-journal','.fos','.fos-journal')"
324
+ "'_FOSSIL_-journal','.fos','.fos-journal',"
325
+ "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
326
+ "'.fos-shm')"
323327
" ORDER BY 1", g.zLocalRoot);
324328
if( file_tree_name(g.zRepositoryName, &repo, 0) ){
325329
db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo);
326330
}
327331
while( db_step(&q)==SQLITE_ROW ){
328332
--- src/checkin.c
+++ src/checkin.c
@@ -271,11 +271,13 @@
271 }
272 vfile_scan(0, &path, blob_size(&path), allFlag);
273 db_prepare(&q,
274 "SELECT x FROM sfile"
275 " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
276 "'_FOSSIL_-journal','.fos','.fos-journal')"
 
 
277 " AND NOT %s"
278 " ORDER BY 1",
279 glob_expr("x", zIgnoreFlag)
280 );
281 if( file_tree_name(g.zRepositoryName, &repo, 0) ){
@@ -317,11 +319,13 @@
317 blob_init(&path, g.zLocalRoot, n-1);
318 vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
319 db_prepare(&q,
320 "SELECT %Q || x FROM sfile"
321 " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
322 "'_FOSSIL_-journal','.fos','.fos-journal')"
 
 
323 " ORDER BY 1", g.zLocalRoot);
324 if( file_tree_name(g.zRepositoryName, &repo, 0) ){
325 db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo);
326 }
327 while( db_step(&q)==SQLITE_ROW ){
328
--- src/checkin.c
+++ src/checkin.c
@@ -271,11 +271,13 @@
271 }
272 vfile_scan(0, &path, blob_size(&path), allFlag);
273 db_prepare(&q,
274 "SELECT x FROM sfile"
275 " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
276 "'_FOSSIL_-journal','.fos','.fos-journal',"
277 "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
278 "'.fos-shm')"
279 " AND NOT %s"
280 " ORDER BY 1",
281 glob_expr("x", zIgnoreFlag)
282 );
283 if( file_tree_name(g.zRepositoryName, &repo, 0) ){
@@ -317,11 +319,13 @@
319 blob_init(&path, g.zLocalRoot, n-1);
320 vfile_scan(0, &path, blob_size(&path), dotfilesFlag);
321 db_prepare(&q,
322 "SELECT %Q || x FROM sfile"
323 " WHERE x NOT IN ('manifest','manifest.uuid','_FOSSIL_',"
324 "'_FOSSIL_-journal','.fos','.fos-journal',"
325 "'_FOSSIL_-wal','_FOSSIL_-shm','.fos-wal',"
326 "'.fos-shm')"
327 " ORDER BY 1", g.zLocalRoot);
328 if( file_tree_name(g.zRepositoryName, &repo, 0) ){
329 db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo);
330 }
331 while( db_step(&q)==SQLITE_ROW ){
332
--- src/checkout.c
+++ src/checkout.c
@@ -232,12 +232,16 @@
232232
*/
233233
void unlink_local_database(void){
234234
static const char *azFile[] = {
235235
"%s_FOSSIL_",
236236
"%s_FOSSIL_-journal",
237
+ "%s_FOSSIL_-wal",
238
+ "%s_FOSSIL_-shm",
237239
"%s.fos",
238240
"%s.fos-journal",
241
+ "%s.fos-wal",
242
+ "%s.fos-shm",
239243
};
240244
int i;
241245
for(i=0; i<sizeof(azFile)/sizeof(azFile[0]); i++){
242246
char *z = mprintf(azFile[i], g.zLocalRoot);
243247
unlink(z);
244248
--- src/checkout.c
+++ src/checkout.c
@@ -232,12 +232,16 @@
232 */
233 void unlink_local_database(void){
234 static const char *azFile[] = {
235 "%s_FOSSIL_",
236 "%s_FOSSIL_-journal",
 
 
237 "%s.fos",
238 "%s.fos-journal",
 
 
239 };
240 int i;
241 for(i=0; i<sizeof(azFile)/sizeof(azFile[0]); i++){
242 char *z = mprintf(azFile[i], g.zLocalRoot);
243 unlink(z);
244
--- src/checkout.c
+++ src/checkout.c
@@ -232,12 +232,16 @@
232 */
233 void unlink_local_database(void){
234 static const char *azFile[] = {
235 "%s_FOSSIL_",
236 "%s_FOSSIL_-journal",
237 "%s_FOSSIL_-wal",
238 "%s_FOSSIL_-shm",
239 "%s.fos",
240 "%s.fos-journal",
241 "%s.fos-wal",
242 "%s.fos-shm",
243 };
244 int i;
245 for(i=0; i<sizeof(azFile)/sizeof(azFile[0]); i++){
246 char *z = mprintf(azFile[i], g.zLocalRoot);
247 unlink(z);
248

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button