Fossil SCM

Merge in changes from trunk.

andybradford 2015-08-07 05:16 UTC check-in-edit merge
Commit 5246eac0c871425e01359245bcf8ae88355781c3
+1
--- src/blob.c
+++ src/blob.c
@@ -271,10 +271,11 @@
271271
272272
/*
273273
** Append text or data to the end of a blob.
274274
*/
275275
void blob_append(Blob *pBlob, const char *aData, int nData){
276
+ assert( aData!=0 );
276277
blob_is_init(pBlob);
277278
if( nData<0 ) nData = strlen(aData);
278279
if( nData==0 ) return;
279280
if( pBlob->nUsed + nData >= pBlob->nAlloc ){
280281
pBlob->xRealloc(pBlob, pBlob->nUsed + nData + pBlob->nAlloc + 100);
281282
--- src/blob.c
+++ src/blob.c
@@ -271,10 +271,11 @@
271
272 /*
273 ** Append text or data to the end of a blob.
274 */
275 void blob_append(Blob *pBlob, const char *aData, int nData){
 
276 blob_is_init(pBlob);
277 if( nData<0 ) nData = strlen(aData);
278 if( nData==0 ) return;
279 if( pBlob->nUsed + nData >= pBlob->nAlloc ){
280 pBlob->xRealloc(pBlob, pBlob->nUsed + nData + pBlob->nAlloc + 100);
281
--- src/blob.c
+++ src/blob.c
@@ -271,10 +271,11 @@
271
272 /*
273 ** Append text or data to the end of a blob.
274 */
275 void blob_append(Blob *pBlob, const char *aData, int nData){
276 assert( aData!=0 );
277 blob_is_init(pBlob);
278 if( nData<0 ) nData = strlen(aData);
279 if( nData==0 ) return;
280 if( pBlob->nUsed + nData >= pBlob->nAlloc ){
281 pBlob->xRealloc(pBlob, pBlob->nUsed + nData + pBlob->nAlloc + 100);
282
+2 -2
--- src/undo.c
+++ src/undo.c
@@ -75,13 +75,13 @@
7575
if( old_exists ){
7676
db_ephemeral_blob(&q, 0, &new);
7777
}
7878
if( old_exists ){
7979
if( new_exists ){
80
- fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname);
80
+ fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname);
8181
}else{
82
- fossil_print("NEW %s\n", zPathname);
82
+ fossil_print("NEW %s\n", zPathname);
8383
}
8484
if( new_exists && (new_link || old_link) ){
8585
file_delete(zFullname);
8686
}
8787
if( old_link ){
8888
--- src/undo.c
+++ src/undo.c
@@ -75,13 +75,13 @@
75 if( old_exists ){
76 db_ephemeral_blob(&q, 0, &new);
77 }
78 if( old_exists ){
79 if( new_exists ){
80 fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname);
81 }else{
82 fossil_print("NEW %s\n", zPathname);
83 }
84 if( new_exists && (new_link || old_link) ){
85 file_delete(zFullname);
86 }
87 if( old_link ){
88
--- src/undo.c
+++ src/undo.c
@@ -75,13 +75,13 @@
75 if( old_exists ){
76 db_ephemeral_blob(&q, 0, &new);
77 }
78 if( old_exists ){
79 if( new_exists ){
80 fossil_print("%s %s\n", redoFlag ? "REDO" : "UNDO", zPathname);
81 }else{
82 fossil_print("NEW %s\n", zPathname);
83 }
84 if( new_exists && (new_link || old_link) ){
85 file_delete(zFullname);
86 }
87 if( old_link ){
88
+3 -3
--- src/update.c
+++ src/update.c
@@ -785,15 +785,15 @@
785785
errCode = historical_version_of_file(zRevision, zFile, &record,
786786
&isLink, &isExe, 0, 2);
787787
if( errCode==2 ){
788788
if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q",
789789
zFile, zFile)==0 ){
790
- fossil_print("UNMANAGE: %s\n", zFile);
790
+ fossil_print("UNMANAGE %s\n", zFile);
791791
}else{
792792
undo_save(zFile);
793793
file_delete(zFull);
794
- fossil_print("DELETE: %s\n", zFile);
794
+ fossil_print("DELETE %s\n", zFile);
795795
}
796796
db_multi_exec(
797797
"UPDATE OR REPLACE vfile"
798798
" SET pathname=origname, origname=NULL"
799799
" WHERE pathname=%Q AND origname!=pathname;"
@@ -810,11 +810,11 @@
810810
symlink_create(blob_str(&record), zFull);
811811
}else{
812812
blob_write_to_file(&record, zFull);
813813
}
814814
file_wd_setexe(zFull, isExe);
815
- fossil_print("REVERTED: %s\n", zFile);
815
+ fossil_print("REVERT %s\n", zFile);
816816
mtime = file_wd_mtime(zFull);
817817
db_multi_exec(
818818
"UPDATE vfile"
819819
" SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid"
820820
" WHERE pathname=%Q OR origname=%Q",
821821
--- src/update.c
+++ src/update.c
@@ -785,15 +785,15 @@
785 errCode = historical_version_of_file(zRevision, zFile, &record,
786 &isLink, &isExe, 0, 2);
787 if( errCode==2 ){
788 if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q",
789 zFile, zFile)==0 ){
790 fossil_print("UNMANAGE: %s\n", zFile);
791 }else{
792 undo_save(zFile);
793 file_delete(zFull);
794 fossil_print("DELETE: %s\n", zFile);
795 }
796 db_multi_exec(
797 "UPDATE OR REPLACE vfile"
798 " SET pathname=origname, origname=NULL"
799 " WHERE pathname=%Q AND origname!=pathname;"
@@ -810,11 +810,11 @@
810 symlink_create(blob_str(&record), zFull);
811 }else{
812 blob_write_to_file(&record, zFull);
813 }
814 file_wd_setexe(zFull, isExe);
815 fossil_print("REVERTED: %s\n", zFile);
816 mtime = file_wd_mtime(zFull);
817 db_multi_exec(
818 "UPDATE vfile"
819 " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid"
820 " WHERE pathname=%Q OR origname=%Q",
821
--- src/update.c
+++ src/update.c
@@ -785,15 +785,15 @@
785 errCode = historical_version_of_file(zRevision, zFile, &record,
786 &isLink, &isExe, 0, 2);
787 if( errCode==2 ){
788 if( db_int(0, "SELECT rid FROM vfile WHERE pathname=%Q OR origname=%Q",
789 zFile, zFile)==0 ){
790 fossil_print("UNMANAGE %s\n", zFile);
791 }else{
792 undo_save(zFile);
793 file_delete(zFull);
794 fossil_print("DELETE %s\n", zFile);
795 }
796 db_multi_exec(
797 "UPDATE OR REPLACE vfile"
798 " SET pathname=origname, origname=NULL"
799 " WHERE pathname=%Q AND origname!=pathname;"
@@ -810,11 +810,11 @@
810 symlink_create(blob_str(&record), zFull);
811 }else{
812 blob_write_to_file(&record, zFull);
813 }
814 file_wd_setexe(zFull, isExe);
815 fossil_print("REVERT %s\n", zFile);
816 mtime = file_wd_mtime(zFull);
817 db_multi_exec(
818 "UPDATE vfile"
819 " SET mtime=%lld, chnged=0, deleted=0, isexe=%d, islink=%d,mrid=rid"
820 " WHERE pathname=%Q OR origname=%Q",
821
--- www/server.wiki
+++ www/server.wiki
@@ -179,10 +179,14 @@
179179
script itself must be executable for the user under which it will run (which often differs
180180
from the one running the web server - consult your site's documentation or administrator).</li>
181181
<li>The repository file AND the directory containing it must be writable by the same account
182182
which executes the Fossil binary (again, this might differ from the WWW user). The directory
183183
needs to be writable so that sqlite can write its journal files.</li>
184
+<li>Fossil must be able to create temporary files, the default directory
185
+for which depends on the OS. When the CGI process is operating within
186
+a chroot, ensure that this directory exists and is readable/writeable
187
+by the user who executes the Fossil binary.</li>
184188
</ul>
185189
</p>
186190
187191
<p>
188192
Once the script is set up correctly, and assuming your server is also set
189193
--- www/server.wiki
+++ www/server.wiki
@@ -179,10 +179,14 @@
179 script itself must be executable for the user under which it will run (which often differs
180 from the one running the web server - consult your site's documentation or administrator).</li>
181 <li>The repository file AND the directory containing it must be writable by the same account
182 which executes the Fossil binary (again, this might differ from the WWW user). The directory
183 needs to be writable so that sqlite can write its journal files.</li>
 
 
 
 
184 </ul>
185 </p>
186
187 <p>
188 Once the script is set up correctly, and assuming your server is also set
189
--- www/server.wiki
+++ www/server.wiki
@@ -179,10 +179,14 @@
179 script itself must be executable for the user under which it will run (which often differs
180 from the one running the web server - consult your site's documentation or administrator).</li>
181 <li>The repository file AND the directory containing it must be writable by the same account
182 which executes the Fossil binary (again, this might differ from the WWW user). The directory
183 needs to be writable so that sqlite can write its journal files.</li>
184 <li>Fossil must be able to create temporary files, the default directory
185 for which depends on the OS. When the CGI process is operating within
186 a chroot, ensure that this directory exists and is readable/writeable
187 by the user who executes the Fossil binary.</li>
188 </ul>
189 </p>
190
191 <p>
192 Once the script is set up correctly, and assuming your server is also set
193

Keyboard Shortcuts

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