Fossil SCM

Change var names to camelcase.

ashepilko 2020-04-30 18:20 revert-dir
Commit 7252e631fbf2339a4f8977323785b2efa7ed09955d98399c95b888e8bc621965
1 file changed +8 -8
+8 -8
--- src/update.c
+++ src/update.c
@@ -794,12 +794,12 @@
794794
const char *zFile; /* Filename relative to checkout root */
795795
const char *zRevision; /* Selected revert version, NULL if current */
796796
Blob record = BLOB_INITIALIZER; /* Contents of each reverted file */
797797
int i;
798798
Stmt q;
799
- int revert_all = 0;
800
- int fail_no_revsion_allowed = 0;
799
+ int revertAll = 0;
800
+ int revisionOptNotSupported = 0;
801801
802802
undo_capture_command_line();
803803
zRevision = find_option("revision", "r", 1);
804804
verify_all_options();
805805
@@ -825,14 +825,14 @@
825825
zFile = mprintf("%/", g.argv[i]);
826826
blob_zero(&fname);
827827
file_tree_name(zFile, &fname, 0, 1);
828828
if( blob_eq(&fname, ".") ){
829829
if( zRevision ){
830
- fail_no_revsion_allowed = 1;
830
+ revisionOptNotSupported = 1;
831831
break;
832832
}
833
- revert_all = 1;
833
+ revertAll = 1;
834834
break;
835835
}else if( db_exists(
836836
"SELECT pathname"
837837
" FROM vfile"
838838
" WHERE (substr(pathname,1,length('%q/'))='%q/'"
@@ -842,11 +842,11 @@
842842
int vid;
843843
vid = db_lget_int("checkout", 0);
844844
vfile_check_signature(vid, 0);
845845
846846
if( zRevision ){
847
- fail_no_revsion_allowed = 1;
847
+ revisionOptNotSupported = 1;
848848
break;
849849
}
850850
db_multi_exec(
851851
"INSERT OR IGNORE INTO torevert"
852852
" SELECT pathname"
@@ -868,19 +868,19 @@
868868
);
869869
}
870870
blob_reset(&fname);
871871
}
872872
}else{
873
- revert_all = 1;
873
+ revertAll = 1;
874874
}
875875
876
- if( fail_no_revsion_allowed ){
876
+ if( revisionOptNotSupported ){
877877
fossil_fatal("the --revision option does not work for the directories"
878878
" or the entire tree");
879879
}
880880
881
- if ( revert_all ){
881
+ if ( revertAll ){
882882
int vid;
883883
vid = db_lget_int("checkout", 0);
884884
vfile_check_signature(vid, 0);
885885
db_multi_exec(
886886
"DELETE FROM vmerge;"
887887
--- src/update.c
+++ src/update.c
@@ -794,12 +794,12 @@
794 const char *zFile; /* Filename relative to checkout root */
795 const char *zRevision; /* Selected revert version, NULL if current */
796 Blob record = BLOB_INITIALIZER; /* Contents of each reverted file */
797 int i;
798 Stmt q;
799 int revert_all = 0;
800 int fail_no_revsion_allowed = 0;
801
802 undo_capture_command_line();
803 zRevision = find_option("revision", "r", 1);
804 verify_all_options();
805
@@ -825,14 +825,14 @@
825 zFile = mprintf("%/", g.argv[i]);
826 blob_zero(&fname);
827 file_tree_name(zFile, &fname, 0, 1);
828 if( blob_eq(&fname, ".") ){
829 if( zRevision ){
830 fail_no_revsion_allowed = 1;
831 break;
832 }
833 revert_all = 1;
834 break;
835 }else if( db_exists(
836 "SELECT pathname"
837 " FROM vfile"
838 " WHERE (substr(pathname,1,length('%q/'))='%q/'"
@@ -842,11 +842,11 @@
842 int vid;
843 vid = db_lget_int("checkout", 0);
844 vfile_check_signature(vid, 0);
845
846 if( zRevision ){
847 fail_no_revsion_allowed = 1;
848 break;
849 }
850 db_multi_exec(
851 "INSERT OR IGNORE INTO torevert"
852 " SELECT pathname"
@@ -868,19 +868,19 @@
868 );
869 }
870 blob_reset(&fname);
871 }
872 }else{
873 revert_all = 1;
874 }
875
876 if( fail_no_revsion_allowed ){
877 fossil_fatal("the --revision option does not work for the directories"
878 " or the entire tree");
879 }
880
881 if ( revert_all ){
882 int vid;
883 vid = db_lget_int("checkout", 0);
884 vfile_check_signature(vid, 0);
885 db_multi_exec(
886 "DELETE FROM vmerge;"
887
--- src/update.c
+++ src/update.c
@@ -794,12 +794,12 @@
794 const char *zFile; /* Filename relative to checkout root */
795 const char *zRevision; /* Selected revert version, NULL if current */
796 Blob record = BLOB_INITIALIZER; /* Contents of each reverted file */
797 int i;
798 Stmt q;
799 int revertAll = 0;
800 int revisionOptNotSupported = 0;
801
802 undo_capture_command_line();
803 zRevision = find_option("revision", "r", 1);
804 verify_all_options();
805
@@ -825,14 +825,14 @@
825 zFile = mprintf("%/", g.argv[i]);
826 blob_zero(&fname);
827 file_tree_name(zFile, &fname, 0, 1);
828 if( blob_eq(&fname, ".") ){
829 if( zRevision ){
830 revisionOptNotSupported = 1;
831 break;
832 }
833 revertAll = 1;
834 break;
835 }else if( db_exists(
836 "SELECT pathname"
837 " FROM vfile"
838 " WHERE (substr(pathname,1,length('%q/'))='%q/'"
@@ -842,11 +842,11 @@
842 int vid;
843 vid = db_lget_int("checkout", 0);
844 vfile_check_signature(vid, 0);
845
846 if( zRevision ){
847 revisionOptNotSupported = 1;
848 break;
849 }
850 db_multi_exec(
851 "INSERT OR IGNORE INTO torevert"
852 " SELECT pathname"
@@ -868,19 +868,19 @@
868 );
869 }
870 blob_reset(&fname);
871 }
872 }else{
873 revertAll = 1;
874 }
875
876 if( revisionOptNotSupported ){
877 fossil_fatal("the --revision option does not work for the directories"
878 " or the entire tree");
879 }
880
881 if ( revertAll ){
882 int vid;
883 vid = db_lget_int("checkout", 0);
884 vfile_check_signature(vid, 0);
885 db_multi_exec(
886 "DELETE FROM vmerge;"
887

Keyboard Shortcuts

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