Fossil SCM

Make sure the /uv webpage returns a sensible error if the unversioned table does not exist.

drh 2017-06-19 01:55 trunk
Commit a49ef3786563a0c90aa498a364f1811bc676eae4eb26f01cf1b16904df13d310
1 file changed +3 -1
+3 -1
--- src/doc.c
+++ src/doc.c
@@ -636,11 +636,13 @@
636636
}else{
637637
goto doc_not_found;
638638
}
639639
}
640640
if( isUV ){
641
- if( unversioned_content(zName, &filebody)==0 ){
641
+ if( db_table_exists("repository","unversioned")
642
+ && unversioned_content(zName, &filebody)==0
643
+ ){
642644
rid = 1;
643645
zDfltTitle = zName;
644646
}
645647
}else if( fossil_strcmp(zCheckin,"ckout")==0 ){
646648
/* Read from the local checkout */
647649
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button