Fossil SCM

Fix indentation and tabs to style guide

venkat 2011-06-06 17:59 venks-emacs
Commit 081a29c0b7689c4bfe33889389a95f3f0915ed81
1 file changed +24 -24
+24 -24
--- src/tkt.c
+++ src/tkt.c
@@ -1009,11 +1009,11 @@
10091009
/* read commandline and assign fields in the azValue array */
10101010
while( i<g.argc ){
10111011
char *zFName;
10121012
char *zFValue;
10131013
int j;
1014
- int append = 0;
1014
+ int append = 0;
10151015
10161016
zFName = g.argv[i++];
10171017
if( i==g.argc ){
10181018
fossil_fatal("missing value for '%s'!",zFName);
10191019
}
@@ -1020,23 +1020,23 @@
10201020
zFValue = g.argv[i++];
10211021
if( tktEncoding == tktFossilize ){
10221022
zFValue=mprintf("%s",zFValue);
10231023
defossilize(zFValue);
10241024
}
1025
- append = (zFName[0] == '+');
1026
- if (append){
1027
- zFName++;
1028
- }
1025
+ append = (zFName[0] == '+');
1026
+ if (append){
1027
+ zFName++;
1028
+ }
10291029
j = fieldId(zFName);
10301030
if( j == -1 ){
10311031
fossil_fatal("unknown field name '%s'!",zFName);
10321032
}else{
1033
- if (append) {
1034
- azAppend[j] = zFValue;
1035
- } else {
1036
- azValue[j] = zFValue;
1037
- }
1033
+ if (append) {
1034
+ azAppend[j] = zFValue;
1035
+ } else {
1036
+ azValue[j] = zFValue;
1037
+ }
10381038
}
10391039
}
10401040
10411041
/* now add the needed artifacts to the repository */
10421042
blob_zero(&tktchng);
@@ -1048,26 +1048,26 @@
10481048
free(zDate);
10491049
}
10501050
/* append defined elements */
10511051
for(i=0; i<nField; i++){
10521052
char *zValue = 0;
1053
- char *zPfx;
1054
-
1055
- if (azAppend[i] && azAppend[i][0] ){
1056
- zPfx = " +";
1057
- zValue = azAppend[i];
1058
- } else if( azValue[i] && azValue[i][0] ){
1059
- zPfx = " ";
1060
- zValue = azValue[i];
1061
- } else {
1062
- continue;
1063
- }
1053
+ char *zPfx;
1054
+
1055
+ if (azAppend[i] && azAppend[i][0] ){
1056
+ zPfx = " +";
1057
+ zValue = azAppend[i];
1058
+ } else if( azValue[i] && azValue[i][0] ){
1059
+ zPfx = " ";
1060
+ zValue = azValue[i];
1061
+ } else {
1062
+ continue;
1063
+ }
10641064
if( strncmp(azField[i], "private_", 8)==0 ){
10651065
zValue = db_conceal(zValue, strlen(zValue));
10661066
blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
10671067
}else{
1068
- blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
1068
+ blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
10691069
azField[i], strlen(zValue), zValue);
10701070
}
10711071
if( tktEncoding == tktFossilize ){
10721072
free(azValue[i]);
10731073
}
@@ -1082,11 +1082,11 @@
10821082
}
10831083
manifest_crosslink_begin();
10841084
manifest_crosslink(rid, &tktchng);
10851085
manifest_crosslink_end();
10861086
assert( blob_is_reset(&tktchng) );
1087
- printf("ticket %s succeeded for UID %s\n",
1088
- (eCmd==set?"set":"add"),zTktUuid);
1087
+ printf("ticket %s succeeded for UID %s\n",
1088
+ (eCmd==set?"set":"add"),zTktUuid);
10891089
}
10901090
}
10911091
}
10921092
}
10931093
--- src/tkt.c
+++ src/tkt.c
@@ -1009,11 +1009,11 @@
1009 /* read commandline and assign fields in the azValue array */
1010 while( i<g.argc ){
1011 char *zFName;
1012 char *zFValue;
1013 int j;
1014 int append = 0;
1015
1016 zFName = g.argv[i++];
1017 if( i==g.argc ){
1018 fossil_fatal("missing value for '%s'!",zFName);
1019 }
@@ -1020,23 +1020,23 @@
1020 zFValue = g.argv[i++];
1021 if( tktEncoding == tktFossilize ){
1022 zFValue=mprintf("%s",zFValue);
1023 defossilize(zFValue);
1024 }
1025 append = (zFName[0] == '+');
1026 if (append){
1027 zFName++;
1028 }
1029 j = fieldId(zFName);
1030 if( j == -1 ){
1031 fossil_fatal("unknown field name '%s'!",zFName);
1032 }else{
1033 if (append) {
1034 azAppend[j] = zFValue;
1035 } else {
1036 azValue[j] = zFValue;
1037 }
1038 }
1039 }
1040
1041 /* now add the needed artifacts to the repository */
1042 blob_zero(&tktchng);
@@ -1048,26 +1048,26 @@
1048 free(zDate);
1049 }
1050 /* append defined elements */
1051 for(i=0; i<nField; i++){
1052 char *zValue = 0;
1053 char *zPfx;
1054
1055 if (azAppend[i] && azAppend[i][0] ){
1056 zPfx = " +";
1057 zValue = azAppend[i];
1058 } else if( azValue[i] && azValue[i][0] ){
1059 zPfx = " ";
1060 zValue = azValue[i];
1061 } else {
1062 continue;
1063 }
1064 if( strncmp(azField[i], "private_", 8)==0 ){
1065 zValue = db_conceal(zValue, strlen(zValue));
1066 blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
1067 }else{
1068 blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
1069 azField[i], strlen(zValue), zValue);
1070 }
1071 if( tktEncoding == tktFossilize ){
1072 free(azValue[i]);
1073 }
@@ -1082,11 +1082,11 @@
1082 }
1083 manifest_crosslink_begin();
1084 manifest_crosslink(rid, &tktchng);
1085 manifest_crosslink_end();
1086 assert( blob_is_reset(&tktchng) );
1087 printf("ticket %s succeeded for UID %s\n",
1088 (eCmd==set?"set":"add"),zTktUuid);
1089 }
1090 }
1091 }
1092 }
1093
--- src/tkt.c
+++ src/tkt.c
@@ -1009,11 +1009,11 @@
1009 /* read commandline and assign fields in the azValue array */
1010 while( i<g.argc ){
1011 char *zFName;
1012 char *zFValue;
1013 int j;
1014 int append = 0;
1015
1016 zFName = g.argv[i++];
1017 if( i==g.argc ){
1018 fossil_fatal("missing value for '%s'!",zFName);
1019 }
@@ -1020,23 +1020,23 @@
1020 zFValue = g.argv[i++];
1021 if( tktEncoding == tktFossilize ){
1022 zFValue=mprintf("%s",zFValue);
1023 defossilize(zFValue);
1024 }
1025 append = (zFName[0] == '+');
1026 if (append){
1027 zFName++;
1028 }
1029 j = fieldId(zFName);
1030 if( j == -1 ){
1031 fossil_fatal("unknown field name '%s'!",zFName);
1032 }else{
1033 if (append) {
1034 azAppend[j] = zFValue;
1035 } else {
1036 azValue[j] = zFValue;
1037 }
1038 }
1039 }
1040
1041 /* now add the needed artifacts to the repository */
1042 blob_zero(&tktchng);
@@ -1048,26 +1048,26 @@
1048 free(zDate);
1049 }
1050 /* append defined elements */
1051 for(i=0; i<nField; i++){
1052 char *zValue = 0;
1053 char *zPfx;
1054
1055 if (azAppend[i] && azAppend[i][0] ){
1056 zPfx = " +";
1057 zValue = azAppend[i];
1058 } else if( azValue[i] && azValue[i][0] ){
1059 zPfx = " ";
1060 zValue = azValue[i];
1061 } else {
1062 continue;
1063 }
1064 if( strncmp(azField[i], "private_", 8)==0 ){
1065 zValue = db_conceal(zValue, strlen(zValue));
1066 blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
1067 }else{
1068 blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
1069 azField[i], strlen(zValue), zValue);
1070 }
1071 if( tktEncoding == tktFossilize ){
1072 free(azValue[i]);
1073 }
@@ -1082,11 +1082,11 @@
1082 }
1083 manifest_crosslink_begin();
1084 manifest_crosslink(rid, &tktchng);
1085 manifest_crosslink_end();
1086 assert( blob_is_reset(&tktchng) );
1087 printf("ticket %s succeeded for UID %s\n",
1088 (eCmd==set?"set":"add"),zTktUuid);
1089 }
1090 }
1091 }
1092 }
1093

Keyboard Shortcuts

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