Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | corrected -L 0 for deconstruct |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | wolfgangFormat2CSS_2 |
Files: | files | file ages | folders |
SHA1: | f7fd676575928f8499187f20ca47a5e6 |
User & Date: | wolfgang 2010-09-27 12:29:47 |
Context
2010-09-27
| ||
12:35 | corrected dependency for page_index.h in PellesC-Make check-in: f8b8e530 user: wolfgang tags: wolfgangFormat2CSS_2 | |
12:29 | corrected -L 0 for deconstruct check-in: f7fd6765 user: wolfgang tags: wolfgangFormat2CSS_2 | |
12:10 | recreated deconstruct command check-in: ab12d0f4 user: wolfgang tags: wolfgangFormat2CSS_2 | |
Changes
Changes to src/rebuild.c.
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
...
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
|
** ** Usage %fossil deconstruct ?-R|--repository REPOSITORY? ?-L|--prefixlength N? DESTINATION ** ** This command exports all artifacts of o given repository and ** writes all artifacts to the file system. The DESTINATION directory ** will be populated with subdirectories AA and files AA/BBBBBBBBB.., where ** AABBBBBBBBB.. is the 40 character artifact ID, AA the first 2 characters. ** Ivf -L|--prefixlength is given, the length (default 2) of the directory ** prefix can be set to 0,1,..,9 characters. */ void deconstruct_cmd(void){ const char *zDestDir; const char *zPrefixOpt; int prefixLength; char *zAFileOutFormat; ................................................................................ case '6': prefixLength = 6;break; case '7': prefixLength = 7;break; case '8': prefixLength = 8;break; case '9': prefixLength = 9;break; default: fossil_panic("N(%s) is not a a valid prefix length!",zPrefixOpt); } } zAFileOutFormat = mprintf("%%s/%%.%ds/%%s",prefixLength); #ifndef _WIN32 if( access(zDestDir, W_OK) ){ fossil_panic("DESTINATION(%s) is not writeable!",zDestDir); } #else /* write access on windows is not checked, errors will be ** dected on blob_write_to_file |
|
>
|
>
>
>
|
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
...
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
|
** ** Usage %fossil deconstruct ?-R|--repository REPOSITORY? ?-L|--prefixlength N? DESTINATION ** ** This command exports all artifacts of o given repository and ** writes all artifacts to the file system. The DESTINATION directory ** will be populated with subdirectories AA and files AA/BBBBBBBBB.., where ** AABBBBBBBBB.. is the 40 character artifact ID, AA the first 2 characters. ** If -L|--prefixlength is given, the length (default 2) of the directory ** prefix can be set to 0,1,..,9 characters. */ void deconstruct_cmd(void){ const char *zDestDir; const char *zPrefixOpt; int prefixLength; char *zAFileOutFormat; ................................................................................ case '6': prefixLength = 6;break; case '7': prefixLength = 7;break; case '8': prefixLength = 8;break; case '9': prefixLength = 9;break; default: fossil_panic("N(%s) is not a a valid prefix length!",zPrefixOpt); } } if (prefixLength){ zAFileOutFormat = mprintf("%%s/%%.%ds/%%s",prefixLength); }else{ zAFileOutFormat = mprintf("%%s/%%s"); } #ifndef _WIN32 if( access(zDestDir, W_OK) ){ fossil_panic("DESTINATION(%s) is not writeable!",zDestDir); } #else /* write access on windows is not checked, errors will be ** dected on blob_write_to_file |