Fossil SCM

Fixed a && which was supposed to be a & in the new patch code. Caught by gcc.

stephan 2021-06-29 05:05 trunk
Commit 1fd69610056205ca9b6265bb5c82bb17616b6c5b317ff560a088ebb0be20f041
1 file changed +4 -4
+4 -4
--- src/patch.c
+++ src/patch.c
@@ -715,12 +715,12 @@
715715
Stmt q;
716716
Blob empty;
717717
blob_zero(&empty);
718718
719719
if( (mFlags & PATCH_FORCE)==0 ){
720
- /* Check to ensure that the patch against the repository that we
721
- ** have opened.
720
+ /* Check to ensure that the patch is against the repository that
721
+ ** we have opened.
722722
**
723723
** To do: If there is a mismatch, should we scan all of the repositories
724724
** listed in the global_config table looking for a match?
725725
*/
726726
if( db_exists(
@@ -771,13 +771,13 @@
771771
if( db_column_type(&q,0)!=SQLITE_INTEGER
772772
&& db_column_type(&q,4)==SQLITE_TEXT
773773
){
774774
char *zUuid = fossil_strdup(db_column_text(&q,4));
775775
char *zName = fossil_strdup(db_column_text(&q,1));
776
- if( mFlags && PATCH_FORCE ){
776
+ if( mFlags & PATCH_FORCE ){
777777
fossil_print("ERROR cannot find base artifact %S for file \"%s\"\n",
778
- zUuid, zName);
778
+ zUuid, zName);
779779
nErr++;
780780
fossil_free(zUuid);
781781
fossil_free(zName);
782782
continue;
783783
}else{
784784
--- src/patch.c
+++ src/patch.c
@@ -715,12 +715,12 @@
715 Stmt q;
716 Blob empty;
717 blob_zero(&empty);
718
719 if( (mFlags & PATCH_FORCE)==0 ){
720 /* Check to ensure that the patch against the repository that we
721 ** have opened.
722 **
723 ** To do: If there is a mismatch, should we scan all of the repositories
724 ** listed in the global_config table looking for a match?
725 */
726 if( db_exists(
@@ -771,13 +771,13 @@
771 if( db_column_type(&q,0)!=SQLITE_INTEGER
772 && db_column_type(&q,4)==SQLITE_TEXT
773 ){
774 char *zUuid = fossil_strdup(db_column_text(&q,4));
775 char *zName = fossil_strdup(db_column_text(&q,1));
776 if( mFlags && PATCH_FORCE ){
777 fossil_print("ERROR cannot find base artifact %S for file \"%s\"\n",
778 zUuid, zName);
779 nErr++;
780 fossil_free(zUuid);
781 fossil_free(zName);
782 continue;
783 }else{
784
--- src/patch.c
+++ src/patch.c
@@ -715,12 +715,12 @@
715 Stmt q;
716 Blob empty;
717 blob_zero(&empty);
718
719 if( (mFlags & PATCH_FORCE)==0 ){
720 /* Check to ensure that the patch is against the repository that
721 ** we have opened.
722 **
723 ** To do: If there is a mismatch, should we scan all of the repositories
724 ** listed in the global_config table looking for a match?
725 */
726 if( db_exists(
@@ -771,13 +771,13 @@
771 if( db_column_type(&q,0)!=SQLITE_INTEGER
772 && db_column_type(&q,4)==SQLITE_TEXT
773 ){
774 char *zUuid = fossil_strdup(db_column_text(&q,4));
775 char *zName = fossil_strdup(db_column_text(&q,1));
776 if( mFlags & PATCH_FORCE ){
777 fossil_print("ERROR cannot find base artifact %S for file \"%s\"\n",
778 zUuid, zName);
779 nErr++;
780 fossil_free(zUuid);
781 fossil_free(zName);
782 continue;
783 }else{
784

Keyboard Shortcuts

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