Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Allow fossil update -n -v current to be used on the root directory (aborted with "outside of checkout tree" error before). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | venks-emacs |
| Files: | files | file ages | folders |
| SHA1: |
b6bb1ee725ccf13bd9a9fd34851c65a6 |
| User & Date: | venkat 2010-11-08 05:23:29.000 |
Context
|
2010-11-08
| ||
| 06:13 | Fossil update -n -v current on root dir now prints all files (printed none before). check-in: cbce3e2f7c user: venkat tags: venks-emacs | |
| 05:23 | Allow fossil update -n -v current to be used on the root directory (aborted with "outside of checkout tree" error before). check-in: b6bb1ee725 user: venkat tags: venks-emacs | |
| 04:52 | merge with trunk check-in: c18bbf69eb user: venkat tags: venks-emacs | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
430 431 432 433 434 435 436 |
*/
int file_tree_name(const char *zOrigName, Blob *pOut, int errFatal){
int n;
Blob full;
db_must_be_within_tree();
file_canonical_name(zOrigName, &full);
n = strlen(g.zLocalRoot);
| > | > > > > | | | | < < < < | 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 |
*/
int file_tree_name(const char *zOrigName, Blob *pOut, int errFatal){
int n;
Blob full;
db_must_be_within_tree();
file_canonical_name(zOrigName, &full);
n = strlen(g.zLocalRoot);
if((blob_size(&full) == n-1 && !memcmp(g.zLocalRoot, blob_buffer(&full), n-1)) ||
(blob_size(&full) >= n && !memcmp(g.zLocalRoot, blob_buffer(&full), n))){
blob_zero(pOut);
blob_append(pOut, blob_buffer(&full)+n, blob_size(&full)-n);
return 1;
}
blob_reset(&full);
if( errFatal ){
fossil_fatal("file outside of checkout tree: %s", zOrigName);
}
return 0;
}
/*
** COMMAND: test-tree-name
**
** Test the operation of the tree name generator.
*/
|
| ︙ | ︙ |