Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add support for the -R option on several command-line subcommands. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4fe221411663c2f6d88340d17de2543a |
| User & Date: | drh 2011-09-13 00:40:32.706 |
References
|
2011-09-13
| ||
| 12:42 | online docco for [4fe2214116] (support for fossil info / descendants ?-R repo?) check-in: a336ff53d2 user: martin.weber tags: msw-docco | |
Context
|
2011-09-14
| ||
| 00:32 | Begin streamline the online documentation to: * always include a short overview of the options supported by a given command, alphabetically sorted * reference similar/related commands with a final See also: section * Use ?x? for optional arguments * collapse supported options into ?OPTIONS? This is commit #1/n. check-in: 3fbf8caa87 user: martin.weber tags: msw-docco | |
|
2011-09-13
| ||
| 18:36 | Merge documentation updates into trunk. check-in: 6cf00533b2 user: drh tags: trunk | |
| 12:42 | online docco for [4fe2214116] (support for fossil info / descendants ?-R repo?) check-in: a336ff53d2 user: martin.weber tags: msw-docco | |
| 00:40 | Add support for the -R option on several command-line subcommands. check-in: 4fe2214116 user: drh tags: trunk | |
|
2011-09-12
| ||
| 18:19 | Merge the minor fixes on the dmitry-fixes branch into trunk. check-in: ce354d0a9f user: drh tags: trunk | |
Changes
Changes to src/descendants.c.
| ︙ | ︙ | |||
271 272 273 274 275 276 277 |
** Find all leaf descendants of the baseline specified or if the argument
** is omitted, of the baseline currently checked out.
*/
void descendants_cmd(void){
Stmt q;
int base;
| | | 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
** Find all leaf descendants of the baseline specified or if the argument
** is omitted, of the baseline currently checked out.
*/
void descendants_cmd(void){
Stmt q;
int base;
db_find_and_open_repository(0,0);
if( g.argc==2 ){
base = db_lget_int("checkout", 0);
}else{
base = name_to_typed_rid(g.argv[2], "ci");
}
if( base==0 ) return;
compute_leaves(base, 0);
|
| ︙ | ︙ | |||
308 309 310 311 312 313 314 |
void leaves_cmd(void){
Stmt q;
Blob sql;
int showAll = find_option("all", 0, 0)!=0;
int showClosed = find_option("closed", 0, 0)!=0;
int recomputeFlag = find_option("recompute",0,0)!=0;
| | | 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
void leaves_cmd(void){
Stmt q;
Blob sql;
int showAll = find_option("all", 0, 0)!=0;
int showClosed = find_option("closed", 0, 0)!=0;
int recomputeFlag = find_option("recompute",0,0)!=0;
db_find_and_open_repository(0,0);
if( recomputeFlag ) leaf_rebuild();
blob_zero(&sql);
blob_append(&sql, timeline_query_for_tty(), -1);
blob_appendf(&sql, " AND blob.rid IN leaf");
if( showClosed ){
blob_appendf(&sql," AND %z", leaf_is_closed_sql("blob.rid"));
}else if( !showAll ){
|
| ︙ | ︙ |
Changes to src/info.c.
| ︙ | ︙ | |||
132 133 134 135 136 137 138 |
** information about that repository.
**
** Use the "finfo" command to get information about a specific
** file in a checkout.
*/
void info_cmd(void){
i64 fsize;
| < < < | > | | > | | < < | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
** information about that repository.
**
** Use the "finfo" command to get information about a specific
** file in a checkout.
*/
void info_cmd(void){
i64 fsize;
if( g.argc==3 && (fsize = file_size(g.argv[2]))>0 && (fsize&0x1ff)==0 ){
db_open_config(0);
db_record_repository_filename(g.argv[2]);
db_open_repository(g.argv[2]);
fossil_print("project-name: %s\n", db_get("project-name", "<unnamed>"));
fossil_print("project-code: %s\n", db_get("project-code", "<none>"));
fossil_print("server-code: %s\n", db_get("server-code", "<none>"));
return;
}
db_find_and_open_repository(0,0);
if( g.argc==2 ){
int vid;
/* 012345678901234 */
db_record_repository_filename(0);
fossil_print("project-name: %s\n", db_get("project-name", "<unnamed>"));
if( g.localOpen ){
fossil_print("repository: %s\n", db_lget("repository", ""));
fossil_print("local-root: %s\n", g.zLocalRoot);
}
#if defined(_WIN32)
if( g.zHome ){
fossil_print("user-home: %s\n", g.zHome);
}
#endif
fossil_print("project-code: %s\n", db_get("project-code", ""));
fossil_print("server-code: %s\n", db_get("server-code", ""));
vid = g.localOpen ? db_lget_int("checkout", 0) : 0;
if( vid ){
show_common_info(vid, "checkout:", 1, 1);
}
}else{
int rid;
rid = name_to_rid(g.argv[2]);
if( rid==0 ){
fossil_panic("no such object: %s\n", g.argv[2]);
|
| ︙ | ︙ |