Fossil SCM

Bug fix: make sure "fossil update" sets the execute permission bit correctly.

drh 2011-06-06 17:15 trunk
Commit 37c231b11d02739fbab03740f4cdf359a436cfe7
1 file changed +2 -2
+2 -2
--- src/update.c
+++ src/update.c
@@ -324,11 +324,11 @@
324324
int ridv = db_column_int(&q, 2); /* RecordID for current */
325325
int idt = db_column_int(&q, 3); /* VFILE entry for target */
326326
int ridt = db_column_int(&q, 4); /* RecordID for target */
327327
int chnged = db_column_int(&q, 5); /* Current is edited */
328328
const char *zNewName = db_column_text(&q,6);/* New filename */
329
- int isexe = db_column_int(&q, 6); /* EXE perm for new file */
329
+ int isexe = db_column_int(&q, 7); /* EXE perm for new file */
330330
char *zFullPath; /* Full pathname of the file */
331331
char *zFullNewPath; /* Full pathname of dest */
332332
char nameChng; /* True if the name changed */
333333
334334
zFullPath = mprintf("%s%s", g.zLocalRoot, zName);
@@ -443,11 +443,11 @@
443443
db_end_transaction(1); /* With --nochange, rollback changes */
444444
}else{
445445
if( g.argc<=3 ){
446446
/* All files updated. Shift the current checkout to the target. */
447447
db_multi_exec("DELETE FROM vfile WHERE vid!=%d", tid);
448
- checkout_set_all_exe(vid);
448
+ checkout_set_all_exe(tid);
449449
manifest_to_disk(tid);
450450
db_lset_int("checkout", tid);
451451
}else{
452452
/* A subset of files have been checked out. Keep the current
453453
** checkout unchanged. */
454454
--- src/update.c
+++ src/update.c
@@ -324,11 +324,11 @@
324 int ridv = db_column_int(&q, 2); /* RecordID for current */
325 int idt = db_column_int(&q, 3); /* VFILE entry for target */
326 int ridt = db_column_int(&q, 4); /* RecordID for target */
327 int chnged = db_column_int(&q, 5); /* Current is edited */
328 const char *zNewName = db_column_text(&q,6);/* New filename */
329 int isexe = db_column_int(&q, 6); /* EXE perm for new file */
330 char *zFullPath; /* Full pathname of the file */
331 char *zFullNewPath; /* Full pathname of dest */
332 char nameChng; /* True if the name changed */
333
334 zFullPath = mprintf("%s%s", g.zLocalRoot, zName);
@@ -443,11 +443,11 @@
443 db_end_transaction(1); /* With --nochange, rollback changes */
444 }else{
445 if( g.argc<=3 ){
446 /* All files updated. Shift the current checkout to the target. */
447 db_multi_exec("DELETE FROM vfile WHERE vid!=%d", tid);
448 checkout_set_all_exe(vid);
449 manifest_to_disk(tid);
450 db_lset_int("checkout", tid);
451 }else{
452 /* A subset of files have been checked out. Keep the current
453 ** checkout unchanged. */
454
--- src/update.c
+++ src/update.c
@@ -324,11 +324,11 @@
324 int ridv = db_column_int(&q, 2); /* RecordID for current */
325 int idt = db_column_int(&q, 3); /* VFILE entry for target */
326 int ridt = db_column_int(&q, 4); /* RecordID for target */
327 int chnged = db_column_int(&q, 5); /* Current is edited */
328 const char *zNewName = db_column_text(&q,6);/* New filename */
329 int isexe = db_column_int(&q, 7); /* EXE perm for new file */
330 char *zFullPath; /* Full pathname of the file */
331 char *zFullNewPath; /* Full pathname of dest */
332 char nameChng; /* True if the name changed */
333
334 zFullPath = mprintf("%s%s", g.zLocalRoot, zName);
@@ -443,11 +443,11 @@
443 db_end_transaction(1); /* With --nochange, rollback changes */
444 }else{
445 if( g.argc<=3 ){
446 /* All files updated. Shift the current checkout to the target. */
447 db_multi_exec("DELETE FROM vfile WHERE vid!=%d", tid);
448 checkout_set_all_exe(tid);
449 manifest_to_disk(tid);
450 db_lset_int("checkout", tid);
451 }else{
452 /* A subset of files have been checked out. Keep the current
453 ** checkout unchanged. */
454

Keyboard Shortcuts

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