Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the "scrub" command so that it works from within a checkout without having to specify the repository. Ticket [77c58e1415e06fd]. Also fix help text for the "deconstruct" command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
c92ec16f819eeee6e4a886a6292fdce3 |
| User & Date: | drh 2011-03-04 13:19:08.044 |
References
|
2011-03-10
| ||
| 08:30 | • New ticket [305143bd87] Timeline view is always logged-out.. ... (artifact: f8f833805a user: ttmrichter) | |
Context
|
2011-03-07
| ||
| 02:55 | Remove an obsolete RCS ident string from makeheaders.c. ... (check-in: 3531091646 user: drh tags: trunk) | |
|
2011-03-04
| ||
| 13:19 | Fix the "scrub" command so that it works from within a checkout without having to specify the repository. Ticket [77c58e1415e06fd]. Also fix help text for the "deconstruct" command. ... (check-in: c92ec16f81 user: drh tags: trunk) | |
| 13:11 | Make all files mentioned by a public manifest public as well. Ticket [5f194e2c8f475c]. ... (check-in: 2985120d93 user: drh tags: trunk) | |
Changes
Changes to src/rebuild.c.
| ︙ | ︙ | |||
628 629 630 631 632 633 634 |
void scrub_cmd(void){
int bVerily = find_option("verily",0,0)!=0;
int bForce = find_option("force", "f", 0)!=0;
int privateOnly = find_option("private",0,0)!=0;
int bNeedRebuild = 0;
if( g.argc!=2 && g.argc!=3 ) usage("?REPOSITORY?");
if( g.argc==2 ){
| > > > > | > | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 |
void scrub_cmd(void){
int bVerily = find_option("verily",0,0)!=0;
int bForce = find_option("force", "f", 0)!=0;
int privateOnly = find_option("private",0,0)!=0;
int bNeedRebuild = 0;
if( g.argc!=2 && g.argc!=3 ) usage("?REPOSITORY?");
if( g.argc==2 ){
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
if( g.argc!=2 ){
usage("?REPOSITORY-FILENAME?");
}
db_close(1);
db_open_repository(g.zRepositoryName);
}else{
db_open_repository(g.argv[2]);
}
if( !bForce ){
Blob ans;
blob_zero(&ans);
prompt_user("Scrubbing the repository will permanently information.\n"
|
| ︙ | ︙ | |||
778 779 780 781 782 783 784 |
zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
printf("admin-user: %s (initial password is \"%s\")\n", g.zLogin, zPassword);
}
/*
** COMMAND: deconstruct
**
| | > > > > | 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
printf("admin-user: %s (initial password is \"%s\")\n", g.zLogin, zPassword);
}
/*
** COMMAND: deconstruct
**
** Usage %fossil deconstruct ?OPTIONS? DESTIONATION
**
** Options:
** -R|--repository REPOSITORY
** -L|--prefixlength N
**
** This command exports all artifacts of a 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.
|
| ︙ | ︙ |