Fossil SCM
Integrate andygoth-undo-redo-revert-spacing.
Commit
0a2ebe576d27ba7501eb6d43eaac60c99ce83e5e
Parent
1d3a80474b90353…
4 files changed
+2
-2
+2
-2
+3
-3
+3
-3
+2
-2
| --- src/undo.c | ||
| +++ src/undo.c | ||
| @@ -75,13 +75,13 @@ | ||
| 75 | 75 | if( old_exists ){ |
| 76 | 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | 77 | } |
| 78 | 78 | if( old_exists ){ |
| 79 | 79 | if( new_exists ){ |
| 80 | - fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); | |
| 80 | + fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); | |
| 81 | 81 | }else{ |
| 82 | - fossil_print("NEW %s\n", zPathname); | |
| 82 | + fossil_print("NEW %s\n", zPathname); | |
| 83 | 83 | } |
| 84 | 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | 85 | file_delete(zFullname); |
| 86 | 86 | } |
| 87 | 87 | if( old_link ){ |
| 88 | 88 |
| --- src/undo.c | |
| +++ src/undo.c | |
| @@ -75,13 +75,13 @@ | |
| 75 | if( old_exists ){ |
| 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | } |
| 78 | if( old_exists ){ |
| 79 | if( new_exists ){ |
| 80 | fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); |
| 81 | }else{ |
| 82 | fossil_print("NEW %s\n", zPathname); |
| 83 | } |
| 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | file_delete(zFullname); |
| 86 | } |
| 87 | if( old_link ){ |
| 88 |
| --- src/undo.c | |
| +++ src/undo.c | |
| @@ -75,13 +75,13 @@ | |
| 75 | if( old_exists ){ |
| 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | } |
| 78 | if( old_exists ){ |
| 79 | if( new_exists ){ |
| 80 | fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); |
| 81 | }else{ |
| 82 | fossil_print("NEW %s\n", zPathname); |
| 83 | } |
| 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | file_delete(zFullname); |
| 86 | } |
| 87 | if( old_link ){ |
| 88 |
+2
-2
| --- src/undo.c | ||
| +++ src/undo.c | ||
| @@ -75,13 +75,13 @@ | ||
| 75 | 75 | if( old_exists ){ |
| 76 | 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | 77 | } |
| 78 | 78 | if( old_exists ){ |
| 79 | 79 | if( new_exists ){ |
| 80 | - fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); | |
| 80 | + fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); | |
| 81 | 81 | }else{ |
| 82 | - fossil_print("NEW %s\n", zPathname); | |
| 82 | + fossil_print("NEW %s\n", zPathname); | |
| 83 | 83 | } |
| 84 | 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | 85 | file_delete(zFullname); |
| 86 | 86 | } |
| 87 | 87 | if( old_link ){ |
| 88 | 88 |
| --- src/undo.c | |
| +++ src/undo.c | |
| @@ -75,13 +75,13 @@ | |
| 75 | if( old_exists ){ |
| 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | } |
| 78 | if( old_exists ){ |
| 79 | if( new_exists ){ |
| 80 | fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); |
| 81 | }else{ |
| 82 | fossil_print("NEW %s\n", zPathname); |
| 83 | } |
| 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | file_delete(zFullname); |
| 86 | } |
| 87 | if( old_link ){ |
| 88 |
| --- src/undo.c | |
| +++ src/undo.c | |
| @@ -75,13 +75,13 @@ | |
| 75 | if( old_exists ){ |
| 76 | db_ephemeral_blob(&q, 0, &new); |
| 77 | } |
| 78 | if( old_exists ){ |
| 79 | if( new_exists ){ |
| 80 | fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname); |
| 81 | }else{ |
| 82 | fossil_print("NEW %s\n", zPathname); |
| 83 | } |
| 84 | if( new_exists && (new_link || old_link) ){ |
| 85 | file_delete(zFullname); |
| 86 | } |
| 87 | if( old_link ){ |
| 88 |
+3
-3
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -785,15 +785,15 @@ | ||
| 785 | 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | 786 | &isLink, &isExe, 0, 2); |
| 787 | 787 | if( errCode==2 ){ |
| 788 | 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | 789 | zFile, zFile)==0 ){ |
| 790 | - fossil_print("UNMANAGE: %s\n", zFile); | |
| 790 | + fossil_print("UNMANAGE %s\n", zFile); | |
| 791 | 791 | }else{ |
| 792 | 792 | undo_save(zFile); |
| 793 | 793 | file_delete(zFull); |
| 794 | - fossil_print("DELETE: %s\n", zFile); | |
| 794 | + fossil_print("DELETE %s\n", zFile); | |
| 795 | 795 | } |
| 796 | 796 | db_multi_exec( |
| 797 | 797 | "UPDATE OR REPLACE vfile" |
| 798 | 798 | " SET pathname=origname, origname=NULL" |
| 799 | 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | ||
| 810 | 810 | symlink_create(blob_str(&record), zFull); |
| 811 | 811 | }else{ |
| 812 | 812 | blob_write_to_file(&record, zFull); |
| 813 | 813 | } |
| 814 | 814 | file_wd_setexe(zFull, isExe); |
| 815 | - fossil_print("REVERTED: %s\n", zFile); | |
| 815 | + fossil_print("REVERT %s\n", zFile); | |
| 816 | 816 | mtime = file_wd_mtime(zFull); |
| 817 | 817 | db_multi_exec( |
| 818 | 818 | "UPDATE vfile" |
| 819 | 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 | 821 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -785,15 +785,15 @@ | |
| 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | &isLink, &isExe, 0, 2); |
| 787 | if( errCode==2 ){ |
| 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | zFile, zFile)==0 ){ |
| 790 | fossil_print("UNMANAGE: %s\n", zFile); |
| 791 | }else{ |
| 792 | undo_save(zFile); |
| 793 | file_delete(zFull); |
| 794 | fossil_print("DELETE: %s\n", zFile); |
| 795 | } |
| 796 | db_multi_exec( |
| 797 | "UPDATE OR REPLACE vfile" |
| 798 | " SET pathname=origname, origname=NULL" |
| 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | |
| 810 | symlink_create(blob_str(&record), zFull); |
| 811 | }else{ |
| 812 | blob_write_to_file(&record, zFull); |
| 813 | } |
| 814 | file_wd_setexe(zFull, isExe); |
| 815 | fossil_print("REVERTED: %s\n", zFile); |
| 816 | mtime = file_wd_mtime(zFull); |
| 817 | db_multi_exec( |
| 818 | "UPDATE vfile" |
| 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -785,15 +785,15 @@ | |
| 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | &isLink, &isExe, 0, 2); |
| 787 | if( errCode==2 ){ |
| 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | zFile, zFile)==0 ){ |
| 790 | fossil_print("UNMANAGE %s\n", zFile); |
| 791 | }else{ |
| 792 | undo_save(zFile); |
| 793 | file_delete(zFull); |
| 794 | fossil_print("DELETE %s\n", zFile); |
| 795 | } |
| 796 | db_multi_exec( |
| 797 | "UPDATE OR REPLACE vfile" |
| 798 | " SET pathname=origname, origname=NULL" |
| 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | |
| 810 | symlink_create(blob_str(&record), zFull); |
| 811 | }else{ |
| 812 | blob_write_to_file(&record, zFull); |
| 813 | } |
| 814 | file_wd_setexe(zFull, isExe); |
| 815 | fossil_print("REVERT %s\n", zFile); |
| 816 | mtime = file_wd_mtime(zFull); |
| 817 | db_multi_exec( |
| 818 | "UPDATE vfile" |
| 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 |
+3
-3
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -785,15 +785,15 @@ | ||
| 785 | 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | 786 | &isLink, &isExe, 0, 2); |
| 787 | 787 | if( errCode==2 ){ |
| 788 | 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | 789 | zFile, zFile)==0 ){ |
| 790 | - fossil_print("UNMANAGE: %s\n", zFile); | |
| 790 | + fossil_print("UNMANAGE %s\n", zFile); | |
| 791 | 791 | }else{ |
| 792 | 792 | undo_save(zFile); |
| 793 | 793 | file_delete(zFull); |
| 794 | - fossil_print("DELETE: %s\n", zFile); | |
| 794 | + fossil_print("DELETE %s\n", zFile); | |
| 795 | 795 | } |
| 796 | 796 | db_multi_exec( |
| 797 | 797 | "UPDATE OR REPLACE vfile" |
| 798 | 798 | " SET pathname=origname, origname=NULL" |
| 799 | 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | ||
| 810 | 810 | symlink_create(blob_str(&record), zFull); |
| 811 | 811 | }else{ |
| 812 | 812 | blob_write_to_file(&record, zFull); |
| 813 | 813 | } |
| 814 | 814 | file_wd_setexe(zFull, isExe); |
| 815 | - fossil_print("REVERTED: %s\n", zFile); | |
| 815 | + fossil_print("REVERT %s\n", zFile); | |
| 816 | 816 | mtime = file_wd_mtime(zFull); |
| 817 | 817 | db_multi_exec( |
| 818 | 818 | "UPDATE vfile" |
| 819 | 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 | 821 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -785,15 +785,15 @@ | |
| 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | &isLink, &isExe, 0, 2); |
| 787 | if( errCode==2 ){ |
| 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | zFile, zFile)==0 ){ |
| 790 | fossil_print("UNMANAGE: %s\n", zFile); |
| 791 | }else{ |
| 792 | undo_save(zFile); |
| 793 | file_delete(zFull); |
| 794 | fossil_print("DELETE: %s\n", zFile); |
| 795 | } |
| 796 | db_multi_exec( |
| 797 | "UPDATE OR REPLACE vfile" |
| 798 | " SET pathname=origname, origname=NULL" |
| 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | |
| 810 | symlink_create(blob_str(&record), zFull); |
| 811 | }else{ |
| 812 | blob_write_to_file(&record, zFull); |
| 813 | } |
| 814 | file_wd_setexe(zFull, isExe); |
| 815 | fossil_print("REVERTED: %s\n", zFile); |
| 816 | mtime = file_wd_mtime(zFull); |
| 817 | db_multi_exec( |
| 818 | "UPDATE vfile" |
| 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -785,15 +785,15 @@ | |
| 785 | errCode = historical_version_of_file(zRevision, zFile, &record, |
| 786 | &isLink, &isExe, 0, 2); |
| 787 | if( errCode==2 ){ |
| 788 | if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q", |
| 789 | zFile, zFile)==0 ){ |
| 790 | fossil_print("UNMANAGE %s\n", zFile); |
| 791 | }else{ |
| 792 | undo_save(zFile); |
| 793 | file_delete(zFull); |
| 794 | fossil_print("DELETE %s\n", zFile); |
| 795 | } |
| 796 | db_multi_exec( |
| 797 | "UPDATE OR REPLACE vfile" |
| 798 | " SET pathname=origname, origname=NULL" |
| 799 | " WHERE pathname=%Q AND origname!=pathname;" |
| @@ -810,11 +810,11 @@ | |
| 810 | symlink_create(blob_str(&record), zFull); |
| 811 | }else{ |
| 812 | blob_write_to_file(&record, zFull); |
| 813 | } |
| 814 | file_wd_setexe(zFull, isExe); |
| 815 | fossil_print("REVERT %s\n", zFile); |
| 816 | mtime = file_wd_mtime(zFull); |
| 817 | db_multi_exec( |
| 818 | "UPDATE vfile" |
| 819 | " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid" |
| 820 | " WHERE pathname=%Q OR origname=%Q", |
| 821 |