Fossil SCM
Fix the handling of manifest files for the "tag" and "amend" commands.
Commit
a23356042452172818be862ce0676c55000b62508db07f92b4e979d99a9e5bb9
Parent
c453a916069a84e…
4 files changed
+3
+3
+4
-1
+4
-1
+3
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3016,6 +3016,9 @@ | ||
| 3016 | 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | + if( g.localOpen ){ | |
| 3022 | + manifest_to_disk(rid); | |
| 3023 | + } | |
| 3021 | 3024 | } |
| 3022 | 3025 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3016,6 +3016,9 @@ | |
| 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | } |
| 3022 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3016,6 +3016,9 @@ | |
| 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | if( g.localOpen ){ |
| 3022 | manifest_to_disk(rid); |
| 3023 | } |
| 3024 | } |
| 3025 |
+3
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3016,6 +3016,9 @@ | ||
| 3016 | 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | + if( g.localOpen ){ | |
| 3022 | + manifest_to_disk(rid); | |
| 3023 | + } | |
| 3021 | 3024 | } |
| 3022 | 3025 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3016,6 +3016,9 @@ | |
| 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | } |
| 3022 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3016,6 +3016,9 @@ | |
| 3016 | if( fHide && !fHasHidden ) hide_branch(); |
| 3017 | if( fClose && !fHasClosed ) close_leaf(rid); |
| 3018 | if( zNewBranch && zNewBranch[0] ) change_branch(rid,zNewBranch); |
| 3019 | apply_newtags(&ctrl, rid, zUuid); |
| 3020 | show_common_info(rid, "uuid:", 1, 0); |
| 3021 | if( g.localOpen ){ |
| 3022 | manifest_to_disk(rid); |
| 3023 | } |
| 3024 | } |
| 3025 |
+4
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -359,11 +359,13 @@ | ||
| 359 | 359 | }else{ |
| 360 | 360 | nrid = content_put(&ctrl); |
| 361 | 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | 362 | } |
| 363 | 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | - manifest_to_disk(rid); | |
| 364 | + if( g.localOpen ){ | |
| 365 | + manifest_to_disk(rid); | |
| 366 | + } | |
| 365 | 367 | } |
| 366 | 368 | |
| 367 | 369 | /* |
| 368 | 370 | ** COMMAND: tag |
| 369 | 371 | ** |
| @@ -616,10 +618,11 @@ | ||
| 616 | 618 | Blob value; |
| 617 | 619 | char *zUuid; |
| 618 | 620 | int dryRun = 0; |
| 619 | 621 | |
| 620 | 622 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 623 | + db_find_and_open_repository(0, 0); | |
| 621 | 624 | db_find_and_open_repository(0, 0); |
| 622 | 625 | verify_all_options(); |
| 623 | 626 | if( g.argc<4 ){ |
| 624 | 627 | usage("reparent [OPTIONS] PARENT ..."); |
| 625 | 628 | } |
| 626 | 629 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -359,11 +359,13 @@ | |
| 359 | }else{ |
| 360 | nrid = content_put(&ctrl); |
| 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | } |
| 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | manifest_to_disk(rid); |
| 365 | } |
| 366 | |
| 367 | /* |
| 368 | ** COMMAND: tag |
| 369 | ** |
| @@ -616,10 +618,11 @@ | |
| 616 | Blob value; |
| 617 | char *zUuid; |
| 618 | int dryRun = 0; |
| 619 | |
| 620 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 621 | db_find_and_open_repository(0, 0); |
| 622 | verify_all_options(); |
| 623 | if( g.argc<4 ){ |
| 624 | usage("reparent [OPTIONS] PARENT ..."); |
| 625 | } |
| 626 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -359,11 +359,13 @@ | |
| 359 | }else{ |
| 360 | nrid = content_put(&ctrl); |
| 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | } |
| 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | if( g.localOpen ){ |
| 365 | manifest_to_disk(rid); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | /* |
| 370 | ** COMMAND: tag |
| 371 | ** |
| @@ -616,10 +618,11 @@ | |
| 618 | Blob value; |
| 619 | char *zUuid; |
| 620 | int dryRun = 0; |
| 621 | |
| 622 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 623 | db_find_and_open_repository(0, 0); |
| 624 | db_find_and_open_repository(0, 0); |
| 625 | verify_all_options(); |
| 626 | if( g.argc<4 ){ |
| 627 | usage("reparent [OPTIONS] PARENT ..."); |
| 628 | } |
| 629 |
+4
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -359,11 +359,13 @@ | ||
| 359 | 359 | }else{ |
| 360 | 360 | nrid = content_put(&ctrl); |
| 361 | 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | 362 | } |
| 363 | 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | - manifest_to_disk(rid); | |
| 364 | + if( g.localOpen ){ | |
| 365 | + manifest_to_disk(rid); | |
| 366 | + } | |
| 365 | 367 | } |
| 366 | 368 | |
| 367 | 369 | /* |
| 368 | 370 | ** COMMAND: tag |
| 369 | 371 | ** |
| @@ -616,10 +618,11 @@ | ||
| 616 | 618 | Blob value; |
| 617 | 619 | char *zUuid; |
| 618 | 620 | int dryRun = 0; |
| 619 | 621 | |
| 620 | 622 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 623 | + db_find_and_open_repository(0, 0); | |
| 621 | 624 | db_find_and_open_repository(0, 0); |
| 622 | 625 | verify_all_options(); |
| 623 | 626 | if( g.argc<4 ){ |
| 624 | 627 | usage("reparent [OPTIONS] PARENT ..."); |
| 625 | 628 | } |
| 626 | 629 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -359,11 +359,13 @@ | |
| 359 | }else{ |
| 360 | nrid = content_put(&ctrl); |
| 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | } |
| 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | manifest_to_disk(rid); |
| 365 | } |
| 366 | |
| 367 | /* |
| 368 | ** COMMAND: tag |
| 369 | ** |
| @@ -616,10 +618,11 @@ | |
| 616 | Blob value; |
| 617 | char *zUuid; |
| 618 | int dryRun = 0; |
| 619 | |
| 620 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 621 | db_find_and_open_repository(0, 0); |
| 622 | verify_all_options(); |
| 623 | if( g.argc<4 ){ |
| 624 | usage("reparent [OPTIONS] PARENT ..."); |
| 625 | } |
| 626 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -359,11 +359,13 @@ | |
| 359 | }else{ |
| 360 | nrid = content_put(&ctrl); |
| 361 | manifest_crosslink(nrid, &ctrl, MC_PERMIT_HOOKS); |
| 362 | } |
| 363 | assert( blob_is_reset(&ctrl) ); |
| 364 | if( g.localOpen ){ |
| 365 | manifest_to_disk(rid); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | /* |
| 370 | ** COMMAND: tag |
| 371 | ** |
| @@ -616,10 +618,11 @@ | |
| 618 | Blob value; |
| 619 | char *zUuid; |
| 620 | int dryRun = 0; |
| 621 | |
| 622 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 623 | db_find_and_open_repository(0, 0); |
| 624 | db_find_and_open_repository(0, 0); |
| 625 | verify_all_options(); |
| 626 | if( g.argc<4 ){ |
| 627 | usage("reparent [OPTIONS] PARENT ..."); |
| 628 | } |
| 629 |