Fossil SCM

merge from trunk

wolfgang 2010-10-27 18:04 StvPrivateHook2 merge
Commit f5740d09c3ed31ab508d56ff94e6f30b908da4e8
+13 -3
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
4141
# other dependencies. We sometimes add the -static option here
4242
# so that we can build a static executable that will run in a
4343
# chroot jail.
4444
#
4545
LIB = -lz $(LDFLAGS)
46
-HOST_OS!= uname -s
47
-LIB.SunOS= -lsocket -lnsl
48
-LIB += $(LIB.$(HOST_OS))
4946
5047
# If using HTTPS:
5148
LIB += -lcrypto -lssl
5249
5350
#### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
5451
#
5552
TCLSH = tclsh
5653
5754
# You should not need to change anything below this line
5855
###############################################################################
56
+#
57
+# Automatic platform-specific options.
58
+HOST_OS!= uname -s
59
+
60
+LIB.SunOS= -lsocket -lnsl
61
+LIB += $(LIB.$(HOST_OS))
62
+
63
+TCC.DragonFly += -DUSE_PREAD
64
+TCC.FreeBSD += -DUSE_PREAD
65
+TCC.NetBSD += -DUSE_PREAD
66
+TCC.OpenBSD += -DUSE_PREAD
67
+TCC += $(TCC.$(HOST_OS))
68
+
5969
include $(SRCDIR)/main.mk
6070
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
41 # other dependencies. We sometimes add the -static option here
42 # so that we can build a static executable that will run in a
43 # chroot jail.
44 #
45 LIB = -lz $(LDFLAGS)
46 HOST_OS!= uname -s
47 LIB.SunOS= -lsocket -lnsl
48 LIB += $(LIB.$(HOST_OS))
49
50 # If using HTTPS:
51 LIB += -lcrypto -lssl
52
53 #### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
54 #
55 TCLSH = tclsh
56
57 # You should not need to change anything below this line
58 ###############################################################################
 
 
 
 
 
 
 
 
 
 
 
 
 
59 include $(SRCDIR)/main.mk
60
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
41 # other dependencies. We sometimes add the -static option here
42 # so that we can build a static executable that will run in a
43 # chroot jail.
44 #
45 LIB = -lz $(LDFLAGS)
 
 
 
46
47 # If using HTTPS:
48 LIB += -lcrypto -lssl
49
50 #### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
51 #
52 TCLSH = tclsh
53
54 # You should not need to change anything below this line
55 ###############################################################################
56 #
57 # Automatic platform-specific options.
58 HOST_OS!= uname -s
59
60 LIB.SunOS= -lsocket -lnsl
61 LIB += $(LIB.$(HOST_OS))
62
63 TCC.DragonFly += -DUSE_PREAD
64 TCC.FreeBSD += -DUSE_PREAD
65 TCC.NetBSD += -DUSE_PREAD
66 TCC.OpenBSD += -DUSE_PREAD
67 TCC += $(TCC.$(HOST_OS))
68
69 include $(SRCDIR)/main.mk
70
+6 -2
--- src/content.c
+++ src/content.c
@@ -283,22 +283,26 @@
283283
}
284284
285285
/*
286286
** COMMAND: artifact
287287
**
288
-** Usage: %fossil artifact ARTIFACT-ID ?OUTPUT-FILENAME?
288
+** Usage: %fossil artifact ARTIFACT-ID ?OUTPUT-FILENAME? ?OPTIONS?
289289
**
290290
** Extract an artifact by its SHA1 hash and write the results on
291291
** standard output, or if the optional 4th argument is given, in
292292
** the named output file.
293
+**
294
+** Options:
295
+**
296
+** -R|--repository FILE Extract artifacts from repository FILE
293297
*/
294298
void artifact_cmd(void){
295299
int rid;
296300
Blob content;
297301
const char *zFile;
298302
db_find_and_open_repository(1);
299
- if( g.argc!=4 && g.argc!=3 ) usage("RECORDID ?FILENAME?");
303
+ if( g.argc!=4 && g.argc!=3 ) usage("ARTIFACT-ID ?FILENAME? ?OPTIONS?");
300304
zFile = g.argc==4 ? g.argv[3] : "-";
301305
rid = name_to_rid(g.argv[2]);
302306
content_get(rid, &content);
303307
blob_write_to_file(&content, zFile);
304308
}
305309
--- src/content.c
+++ src/content.c
@@ -283,22 +283,26 @@
283 }
284
285 /*
286 ** COMMAND: artifact
287 **
288 ** Usage: %fossil artifact ARTIFACT-ID ?OUTPUT-FILENAME?
289 **
290 ** Extract an artifact by its SHA1 hash and write the results on
291 ** standard output, or if the optional 4th argument is given, in
292 ** the named output file.
 
 
 
 
293 */
294 void artifact_cmd(void){
295 int rid;
296 Blob content;
297 const char *zFile;
298 db_find_and_open_repository(1);
299 if( g.argc!=4 && g.argc!=3 ) usage("RECORDID ?FILENAME?");
300 zFile = g.argc==4 ? g.argv[3] : "-";
301 rid = name_to_rid(g.argv[2]);
302 content_get(rid, &content);
303 blob_write_to_file(&content, zFile);
304 }
305
--- src/content.c
+++ src/content.c
@@ -283,22 +283,26 @@
283 }
284
285 /*
286 ** COMMAND: artifact
287 **
288 ** Usage: %fossil artifact ARTIFACT-ID ?OUTPUT-FILENAME? ?OPTIONS?
289 **
290 ** Extract an artifact by its SHA1 hash and write the results on
291 ** standard output, or if the optional 4th argument is given, in
292 ** the named output file.
293 **
294 ** Options:
295 **
296 ** -R|--repository FILE Extract artifacts from repository FILE
297 */
298 void artifact_cmd(void){
299 int rid;
300 Blob content;
301 const char *zFile;
302 db_find_and_open_repository(1);
303 if( g.argc!=4 && g.argc!=3 ) usage("ARTIFACT-ID ?FILENAME? ?OPTIONS?");
304 zFile = g.argc==4 ? g.argv[3] : "-";
305 rid = name_to_rid(g.argv[2]);
306 content_get(rid, &content);
307 blob_write_to_file(&content, zFile);
308 }
309
--- src/manifest.c
+++ src/manifest.c
@@ -1184,10 +1184,13 @@
11841184
*ppOther = manifest_parse(&otherContent, otherRid);
11851185
if( *ppOther==0 ) return;
11861186
}
11871187
if( (pParent->zBaseline==0)==(pChild->zBaseline==0) ){
11881188
content_deltify(pid, cid, 0);
1189
+ }else if( pChild->zBaseline==0 && pParent->zBaseline!=0 ){
1190
+ fetch_baseline(pParent);
1191
+ content_deltify(pParent->pBaseline->rid, cid, 0);
11891192
}
11901193
11911194
for(i=0, pChildFile=pChild->aFile; i<pChild->nFile; i++, pChildFile++){
11921195
if( pChildFile->zPrior ){
11931196
pParentFile = manifest_file_seek(pParent, pChildFile->zPrior);
11941197
--- src/manifest.c
+++ src/manifest.c
@@ -1184,10 +1184,13 @@
1184 *ppOther = manifest_parse(&otherContent, otherRid);
1185 if( *ppOther==0 ) return;
1186 }
1187 if( (pParent->zBaseline==0)==(pChild->zBaseline==0) ){
1188 content_deltify(pid, cid, 0);
 
 
 
1189 }
1190
1191 for(i=0, pChildFile=pChild->aFile; i<pChild->nFile; i++, pChildFile++){
1192 if( pChildFile->zPrior ){
1193 pParentFile = manifest_file_seek(pParent, pChildFile->zPrior);
1194
--- src/manifest.c
+++ src/manifest.c
@@ -1184,10 +1184,13 @@
1184 *ppOther = manifest_parse(&otherContent, otherRid);
1185 if( *ppOther==0 ) return;
1186 }
1187 if( (pParent->zBaseline==0)==(pChild->zBaseline==0) ){
1188 content_deltify(pid, cid, 0);
1189 }else if( pChild->zBaseline==0 && pParent->zBaseline!=0 ){
1190 fetch_baseline(pParent);
1191 content_deltify(pParent->pBaseline->rid, cid, 0);
1192 }
1193
1194 for(i=0, pChildFile=pChild->aFile; i<pChild->nFile; i++, pChildFile++){
1195 if( pChildFile->zPrior ){
1196 pParentFile = manifest_file_seek(pParent, pChildFile->zPrior);
1197

Keyboard Shortcuts

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