Fossil SCM
Make sure the /uv webpage returns a sensible error if the unversioned table does not exist.
Commit
a49ef3786563a0c90aa498a364f1811bc676eae4eb26f01cf1b16904df13d310
Parent
33a13b80e784d2e…
1 file changed
+3
-1
+3
-1
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -636,11 +636,13 @@ | ||
| 636 | 636 | }else{ |
| 637 | 637 | goto doc_not_found; |
| 638 | 638 | } |
| 639 | 639 | } |
| 640 | 640 | if( isUV ){ |
| 641 | - if( unversioned_content(zName, &filebody)==0 ){ | |
| 641 | + if( db_table_exists("repository","unversioned") | |
| 642 | + && unversioned_content(zName, &filebody)==0 | |
| 643 | + ){ | |
| 642 | 644 | rid = 1; |
| 643 | 645 | zDfltTitle = zName; |
| 644 | 646 | } |
| 645 | 647 | }else if( fossil_strcmp(zCheckin,"ckout")==0 ){ |
| 646 | 648 | /* Read from the local checkout */ |
| 647 | 649 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -636,11 +636,13 @@ | |
| 636 | }else{ |
| 637 | goto doc_not_found; |
| 638 | } |
| 639 | } |
| 640 | if( isUV ){ |
| 641 | if( unversioned_content(zName, &filebody)==0 ){ |
| 642 | rid = 1; |
| 643 | zDfltTitle = zName; |
| 644 | } |
| 645 | }else if( fossil_strcmp(zCheckin,"ckout")==0 ){ |
| 646 | /* Read from the local checkout */ |
| 647 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -636,11 +636,13 @@ | |
| 636 | }else{ |
| 637 | goto doc_not_found; |
| 638 | } |
| 639 | } |
| 640 | if( isUV ){ |
| 641 | if( db_table_exists("repository","unversioned") |
| 642 | && unversioned_content(zName, &filebody)==0 |
| 643 | ){ |
| 644 | rid = 1; |
| 645 | zDfltTitle = zName; |
| 646 | } |
| 647 | }else if( fossil_strcmp(zCheckin,"ckout")==0 ){ |
| 648 | /* Read from the local checkout */ |
| 649 |