Fossil SCM

Let "fossil pull --from-parent-project" run when the parent project has no name. Only its project code is needed; the name is shown, not used, and "fossil detach" records none when the parent had none.

dmestas 2026-11-17 13:19 UTC small-fixes-2
Commit 40b789d684676e1bd7b35b1bd1c15d850e82743b758545ff5456b4f47dc55c4e
1 file changed +2 -3
+2 -3
--- src/xfer.c
+++ src/xfer.c
@@ -2222,14 +2222,13 @@
22222222
const char *zPX;
22232223
configRcvMask = 0;
22242224
configSendMask = 0;
22252225
syncFlags &= ~(SYNC_PUSH);
22262226
zPX = db_get("parent-project-code", 0);
2227
- if( zPX==0 || db_get("parent-project-name",0)==0 ){
2227
+ if( zPX==0 ){
22282228
fossil_fatal("there is no parent project: set the 'parent-project-code'"
2229
- " and 'parent-project-name' config parameters in order"
2230
- " to pull from a parent project");
2229
+ " config parameter in order to pull from a parent project");
22312230
}
22322231
if( zPX ){
22332232
zAltPCode = zPX;
22342233
}
22352234
}
22362235
--- src/xfer.c
+++ src/xfer.c
@@ -2222,14 +2222,13 @@
2222 const char *zPX;
2223 configRcvMask = 0;
2224 configSendMask = 0;
2225 syncFlags &= ~(SYNC_PUSH);
2226 zPX = db_get("parent-project-code", 0);
2227 if( zPX==0 || db_get("parent-project-name",0)==0 ){
2228 fossil_fatal("there is no parent project: set the 'parent-project-code'"
2229 " and 'parent-project-name' config parameters in order"
2230 " to pull from a parent project");
2231 }
2232 if( zPX ){
2233 zAltPCode = zPX;
2234 }
2235 }
2236
--- src/xfer.c
+++ src/xfer.c
@@ -2222,14 +2222,13 @@
2222 const char *zPX;
2223 configRcvMask = 0;
2224 configSendMask = 0;
2225 syncFlags &= ~(SYNC_PUSH);
2226 zPX = db_get("parent-project-code", 0);
2227 if( zPX==0 ){
2228 fossil_fatal("there is no parent project: set the 'parent-project-code'"
2229 " config parameter in order to pull from a parent project");
 
2230 }
2231 if( zPX ){
2232 zAltPCode = zPX;
2233 }
2234 }
2235

Keyboard Shortcuts

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