Fossil SCM
Backout [6e80af7e52], as this branch enables the 'reparent' command to work without an open check-out.
Commit
3580fce8fb402b24625c0314e5d75bc5f7bddf9b16be6d56f3620640cacf8f64
Parent
05c1e3b95818405…
1 file changed
+1
-1
+1
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -635,14 +635,14 @@ | ||
| 635 | 635 | char *zUuid; |
| 636 | 636 | int dryRun = 0; |
| 637 | 637 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 638 | 638 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 639 | 639 | |
| 640 | - db_must_be_within_tree(); | |
| 641 | 640 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 642 | 641 | zDateOvrd = find_option("date-override",0,1); |
| 643 | 642 | zUserOvrd = find_option("user-override",0,1); |
| 643 | + db_find_and_open_repository(0, 0); | |
| 644 | 644 | verify_all_options(); |
| 645 | 645 | if( g.argc<4 ){ |
| 646 | 646 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 647 | 647 | } |
| 648 | 648 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 649 | 649 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -635,14 +635,14 @@ | |
| 635 | char *zUuid; |
| 636 | int dryRun = 0; |
| 637 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 638 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 639 | |
| 640 | db_must_be_within_tree(); |
| 641 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 642 | zDateOvrd = find_option("date-override",0,1); |
| 643 | zUserOvrd = find_option("user-override",0,1); |
| 644 | verify_all_options(); |
| 645 | if( g.argc<4 ){ |
| 646 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 647 | } |
| 648 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 649 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -635,14 +635,14 @@ | |
| 635 | char *zUuid; |
| 636 | int dryRun = 0; |
| 637 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 638 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 639 | |
| 640 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 641 | zDateOvrd = find_option("date-override",0,1); |
| 642 | zUserOvrd = find_option("user-override",0,1); |
| 643 | db_find_and_open_repository(0, 0); |
| 644 | verify_all_options(); |
| 645 | if( g.argc<4 ){ |
| 646 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 647 | } |
| 648 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 649 |