Fossil SCM

Make sure that EVERY 'initial' checkin has an R-card, despite the "repo-cksum" setting. It is the only way to be able to distinguish Manifests from Control artifacts by looking at the presence of cards only. Otherwise, Fossil versions < 1.27 cannot handle that.

jan.nijtmans 2014-02-17 11:07 trunk
Commit 60f669e937698c14ace99ac20a51ef2662c5b4ba
1 file changed +3 -1
+3 -1
--- src/checkin.c
+++ src/checkin.c
@@ -1520,11 +1520,13 @@
15201520
forceBaseline = 1;
15211521
}
15221522
15231523
/* Get the ID of the parent manifest artifact */
15241524
vid = db_lget_int("checkout", 0);
1525
- if( content_is_private(vid) ){
1525
+ if( vid==0 ){
1526
+ useCksum = 1;
1527
+ }else if( content_is_private(vid) ){
15261528
g.markPrivate = 1;
15271529
}
15281530
15291531
/*
15301532
** Autosync if autosync is enabled and this is not a private check-in.
15311533
--- src/checkin.c
+++ src/checkin.c
@@ -1520,11 +1520,13 @@
1520 forceBaseline = 1;
1521 }
1522
1523 /* Get the ID of the parent manifest artifact */
1524 vid = db_lget_int("checkout", 0);
1525 if( content_is_private(vid) ){
 
 
1526 g.markPrivate = 1;
1527 }
1528
1529 /*
1530 ** Autosync if autosync is enabled and this is not a private check-in.
1531
--- src/checkin.c
+++ src/checkin.c
@@ -1520,11 +1520,13 @@
1520 forceBaseline = 1;
1521 }
1522
1523 /* Get the ID of the parent manifest artifact */
1524 vid = db_lget_int("checkout", 0);
1525 if( vid==0 ){
1526 useCksum = 1;
1527 }else if( content_is_private(vid) ){
1528 g.markPrivate = 1;
1529 }
1530
1531 /*
1532 ** Autosync if autosync is enabled and this is not a private check-in.
1533

Keyboard Shortcuts

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