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.
Commit
40b789d684676e1bd7b35b1bd1c15d850e82743b758545ff5456b4f47dc55c4e
Parent
9fd948ff0ff06ac…
1 file changed
+2
-3
+2
-3
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2222,14 +2222,13 @@ | ||
| 2222 | 2222 | const char *zPX; |
| 2223 | 2223 | configRcvMask = 0; |
| 2224 | 2224 | configSendMask = 0; |
| 2225 | 2225 | syncFlags &= ~(SYNC_PUSH); |
| 2226 | 2226 | zPX = db_get("parent-project-code", 0); |
| 2227 | - if( zPX==0 || db_get("parent-project-name",0)==0 ){ | |
| 2227 | + if( zPX==0 ){ | |
| 2228 | 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"); | |
| 2229 | + " config parameter in order to pull from a parent project"); | |
| 2231 | 2230 | } |
| 2232 | 2231 | if( zPX ){ |
| 2233 | 2232 | zAltPCode = zPX; |
| 2234 | 2233 | } |
| 2235 | 2234 | } |
| 2236 | 2235 |
| --- 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 |