Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add the --nested option to the "open" command to allow checkouts from one repository to be created inside the checkout of another respository. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f15943f3399ae794bfda602074cd8fe1 |
| User & Date: | drh 2011-02-08 14:28:04.330 |
Context
|
2011-02-09
| ||
| 03:33 | Always go at least two rounds on a clone since configuration data is not sent until the second round. Ticket [8473eeb9ffb012e1d] check-in: addf670981 user: drh tags: trunk | |
|
2011-02-08
| ||
| 14:28 | Add the --nested option to the "open" command to allow checkouts from one repository to be created inside the checkout of another respository. check-in: f15943f339 user: drh tags: trunk | |
| 12:52 | Exclude directories from file tests in the test suite. Fix an error in the release checklist. check-in: 6502627a3e user: drh tags: trunk, release | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
1506 1507 1508 1509 1510 1511 1512 | db_swap_connections(); blob_reset(&full); } /* ** COMMAND: open ** | | > > > | | 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 |
db_swap_connections();
blob_reset(&full);
}
/*
** COMMAND: open
**
** Usage: %fossil open FILENAME ?VERSION? ?--keep? ?--nested?
**
** Open a connection to the local repository in FILENAME. A checkout
** for the repository is created with its root at the working directory.
** If VERSION is specified then that version is checked out. Otherwise
** the latest version is checked out. No files other than "manifest"
** and "manifest.uuid" are modified if the --keep option is present.
**
** See also the "close" command.
*/
void cmd_open(void){
Blob path;
int vid;
int keepFlag;
int allowNested;
static char *azNewArgv[] = { 0, "checkout", "--prompt", "--latest", 0, 0 };
url_proxy_options();
keepFlag = find_option("keep",0,0)!=0;
allowNested = find_option("nested",0,0)!=0;
if( g.argc!=3 && g.argc!=4 ){
usage("REPOSITORY-FILENAME ?VERSION?");
}
if( !allowNested && db_open_local() ){
fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
}
file_canonical_name(g.argv[2], &path);
db_open_repository(blob_str(&path));
db_init_database("./_FOSSIL_", zLocalSchema, (char*)0);
db_open_local();
db_lset("repository", blob_str(&path));
|
| ︙ | ︙ |