Fossil SCM

For the 'reparent' command, make sure there's an open check-out (otherwise it will fail).

florian 2019-01-04 07:54 trunk
Commit 6e80af7e527cbc2b54d06db8ba8d838a7df6d9ea4de4d487e3027a945b52bc84
1 file changed +1 -1
+1 -1
--- src/tag.c
+++ src/tag.c
@@ -633,14 +633,14 @@
633633
char *zUuid;
634634
int dryRun = 0;
635635
const char *zDateOvrd; /* The change time on the control artifact */
636636
const char *zUserOvrd; /* The user name on the control artifact */
637637
638
+ db_must_be_within_tree();
638639
if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN;
639640
zDateOvrd = find_option("date-override",0,1);
640641
zUserOvrd = find_option("user-override",0,1);
641
- db_find_and_open_repository(0, 0);
642642
verify_all_options();
643643
if( g.argc<4 ){
644644
usage("[OPTIONS] CHECK-IN PARENT ...");
645645
}
646646
rid = name_to_typed_rid(g.argv[2], "ci");
647647
--- 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

Keyboard Shortcuts

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