Fossil

Check-in [5c72725ef5]
Login

Check-in [5c72725ef5]

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

Overview
Comment:Error checking: The argument to the --from option on the "fossil ui" command must be a pathname (not a tag or version hash).
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5c72725ef58387f78a041b27c29a450759767f67f52209d6dae75bc76ad4fde7
User & Date: drh 2024-12-15 16:01:53.381
Context
2024-12-15
16:30
Documentation updates to better reflect recent changes. ... (check-in: 7f1958acf8 user: drh tags: trunk)
16:01
Error checking: The argument to the --from option on the "fossil ui" command must be a pathname (not a tag or version hash). ... (check-in: 5c72725ef5 user: drh tags: trunk)
15:57
Change the --external-baseline option on "diff" and "ui" to be just --from. See [forum:/forumpost/91ce9dd9f9afa7fe|forum thread 91ce9dd9f9afa7fe]. ... (check-in: 763758db16 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
3287
3288
3289
3290
3291
3292
3293




3294
3295
3296
3297
3298
3299
3300
#endif
  g.useLocalauth = find_option("localauth", 0, 0)!=0;
  Th_InitTraceLog();
  zPort = find_option("port", "P", 1);
  isUiCmd = g.argv[1][0]=='u';
  if( isUiCmd ){
    zFrom = find_option("from", 0, 1);




    zInitPage = find_option("page", "p", 1);
    if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
    zFossilCmd = find_option("fossilcmd", 0, 1);
    if( zFrom && zInitPage==0 ){
      zInitPage = mprintf("ckout?exbase=%T", zFrom);
    }
  }







>
>
>
>







3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
#endif
  g.useLocalauth = find_option("localauth", 0, 0)!=0;
  Th_InitTraceLog();
  zPort = find_option("port", "P", 1);
  isUiCmd = g.argv[1][0]=='u';
  if( isUiCmd ){
    zFrom = find_option("from", 0, 1);
    if( zFrom && zFrom==file_tail(zFrom) ){
      fossil_fatal("the argument to --from must be a pathname for"
                   " the \"ui\" command");
    }
    zInitPage = find_option("page", "p", 1);
    if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
    zFossilCmd = find_option("fossilcmd", 0, 1);
    if( zFrom && zInitPage==0 ){
      zInitPage = mprintf("ckout?exbase=%T", zFrom);
    }
  }