Fossil

Check-in [acb5324c]
Login

Check-in [acb5324c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Put --allow-fork back into the fossil ci "would fork" message. Everyone's unhappy now. :)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: acb5324c7925fa68688887807a5269ff8d1c8769f43d0048cb73611a5bd5aa68
User & Date: wyoung 2019-06-20 16:46:29
Context
2019-06-20
17:02
Replaced a mailing list reference with a forum link (reported by a forum user). ... (check-in: 8ddeb17d user: stephan tags: trunk)
16:46
Put --allow-fork back into the fossil ci "would fork" message. Everyone's unhappy now. :) ... (check-in: acb5324c user: wyoung tags: trunk)
16:40
Removed "The Author's Voice" from www/branching.wiki due to multiple complaints. ... (check-in: 1926d1d5 user: wyoung tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
  ** or --force flags is used, or unless this is a private check-in.
  ** The initial commit MUST have tags "trunk" and "sym-trunk".
  */
  if( !vid ){
    if( sCiInfo.zBranch==0 ){
      if( allowFork==0 && forceFlag==0 && g.markPrivate==0
        && db_exists("SELECT 1 from event where type='ci'") ){
        fossil_fatal("would fork.  \"update\" first or use --branch.  See also\n"
          "https://fossil-scm.org/fossil/doc/trunk/www/branching.wiki#branching");
      }
      sCiInfo.zBranch = db_get("main-branch", "trunk");
    }
  }else if( sCiInfo.zBranch==0 && allowFork==0 && forceFlag==0
    && g.markPrivate==0 && !is_a_leaf(vid)
  ){
    /* Can't avoid duplicating this string because some C compilers
    ** refuse to see static const char zErr[] = "... as "constant"
    ** enough for a printf() style format string.  (e.g. Clang 10)
    */
    fossil_fatal("would fork.  \"update\" first or use --branch.  See also\n"
      "https://fossil-scm.org/fossil/doc/trunk/www/branching.wiki#branching");
  }

  /*
  ** Do not allow a commit against a closed leaf unless the commit
  ** ends up on a different branch.
  */
  if(







|
|










|
|







2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
  ** or --force flags is used, or unless this is a private check-in.
  ** The initial commit MUST have tags "trunk" and "sym-trunk".
  */
  if( !vid ){
    if( sCiInfo.zBranch==0 ){
      if( allowFork==0 && forceFlag==0 && g.markPrivate==0
        && db_exists("SELECT 1 from event where type='ci'") ){
        fossil_fatal("Would fork.  \"update\" first, use --branch, or --allow-fork.\n"
          "See https://fossil-scm.org/fossil/doc/trunk/www/branching.wiki#branching");
      }
      sCiInfo.zBranch = db_get("main-branch", "trunk");
    }
  }else if( sCiInfo.zBranch==0 && allowFork==0 && forceFlag==0
    && g.markPrivate==0 && !is_a_leaf(vid)
  ){
    /* Can't avoid duplicating this string because some C compilers
    ** refuse to see static const char zErr[] = "... as "constant"
    ** enough for a printf() style format string.  (e.g. Clang 10)
    */
    fossil_fatal("Would fork.  \"update\" first, use --branch or, --allow-fork.\n"
      "See https://fossil-scm.org/fossil/doc/trunk/www/branching.wiki#branching");
  }

  /*
  ** Do not allow a commit against a closed leaf unless the commit
  ** ends up on a different branch.
  */
  if(