Fossil SCM

Say in the error for an empty --trunk, --branches or --tags that the --base it needs must not be empty.

dmestas 2026-11-20 20:39 UTC small-fixes
Commit 12b28604f98921cf407c78ffbdb77ce98028f8c6901f18a4deaf6d889e37123a
1 file changed +1 -1
+1 -1
--- src/import.c
+++ src/import.c
@@ -1971,11 +1971,11 @@
19711971
gsvn.lenTrunk = strlen(gsvn.zTrunk);
19721972
gsvn.lenBranches = strlen(gsvn.zBranches);
19731973
gsvn.lenTags = strlen(gsvn.zTags);
19741974
if( gsvn.lenTrunk==0 || gsvn.lenBranches==0 || gsvn.lenTags==0 ){
19751975
fossil_fatal("--trunk, --branches and --tags may be empty only "
1976
- "with --base");
1976
+ "with a non-empty --base");
19771977
}
19781978
if( gsvn.zTrunk[gsvn.lenTrunk-1]!='/' ){
19791979
gsvn.zTrunk = mprintf("%s/", gsvn.zTrunk);
19801980
gsvn.lenTrunk++;
19811981
}
19821982
--- src/import.c
+++ src/import.c
@@ -1971,11 +1971,11 @@
1971 gsvn.lenTrunk = strlen(gsvn.zTrunk);
1972 gsvn.lenBranches = strlen(gsvn.zBranches);
1973 gsvn.lenTags = strlen(gsvn.zTags);
1974 if( gsvn.lenTrunk==0 || gsvn.lenBranches==0 || gsvn.lenTags==0 ){
1975 fossil_fatal("--trunk, --branches and --tags may be empty only "
1976 "with --base");
1977 }
1978 if( gsvn.zTrunk[gsvn.lenTrunk-1]!='/' ){
1979 gsvn.zTrunk = mprintf("%s/", gsvn.zTrunk);
1980 gsvn.lenTrunk++;
1981 }
1982
--- src/import.c
+++ src/import.c
@@ -1971,11 +1971,11 @@
1971 gsvn.lenTrunk = strlen(gsvn.zTrunk);
1972 gsvn.lenBranches = strlen(gsvn.zBranches);
1973 gsvn.lenTags = strlen(gsvn.zTags);
1974 if( gsvn.lenTrunk==0 || gsvn.lenBranches==0 || gsvn.lenTags==0 ){
1975 fossil_fatal("--trunk, --branches and --tags may be empty only "
1976 "with a non-empty --base");
1977 }
1978 if( gsvn.zTrunk[gsvn.lenTrunk-1]!='/' ){
1979 gsvn.zTrunk = mprintf("%s/", gsvn.zTrunk);
1980 gsvn.lenTrunk++;
1981 }
1982

Keyboard Shortcuts

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