Fossil SCM
For the 'reparent' command, make sure there's an open check-out (otherwise it will fail).
Commit
6e80af7e527cbc2b54d06db8ba8d838a7df6d9ea4de4d487e3027a945b52bc84
Parent
724a9b8f3c8d82d…
1 file changed
+1
-1
+1
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -633,14 +633,14 @@ | ||
| 633 | 633 | char *zUuid; |
| 634 | 634 | int dryRun = 0; |
| 635 | 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | 637 | |
| 638 | + db_must_be_within_tree(); | |
| 638 | 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | 640 | zDateOvrd = find_option("date-override",0,1); |
| 640 | 641 | zUserOvrd = find_option("user-override",0,1); |
| 641 | - db_find_and_open_repository(0, 0); | |
| 642 | 642 | verify_all_options(); |
| 643 | 643 | if( g.argc<4 ){ |
| 644 | 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | 645 | } |
| 646 | 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 | 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | zDateOvrd = find_option("date-override",0,1); |
| 640 | zUserOvrd = find_option("user-override",0,1); |
| 641 | db_find_and_open_repository(0, 0); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | db_must_be_within_tree(); |
| 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 640 | zDateOvrd = find_option("date-override",0,1); |
| 641 | zUserOvrd = find_option("user-override",0,1); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |