Fossil SCM

Add TAG_NOTE to the schema. This requires a rebuild before TAG_NOTE can be used, but as TAG_NOTE is not yet used for anything, the rebuild can be deferred.

drh 2015-04-29 13:04 trunk
Commit 61a911981542ae88ead53f76839c2a2b04764ce1
1 file changed +2 -3
+2 -3
--- src/schema.c
+++ src/schema.c
@@ -367,10 +367,11 @@
367367
@ INSERT INTO tag VALUES(6, 'private'); -- TAG_PRIVATE
368368
@ INSERT INTO tag VALUES(7, 'cluster'); -- TAG_CLUSTER
369369
@ INSERT INTO tag VALUES(8, 'branch'); -- TAG_BRANCH
370370
@ INSERT INTO tag VALUES(9, 'closed'); -- TAG_CLOSED
371371
@ INSERT INTO tag VALUES(10,'parent'); -- TAG_PARENT
372
+@ INSERT INTO tag VALUES(11,'note'); -- TAG_NOTE
372373
@
373374
@ -- Assignments of tags to baselines. Note that we allow tags to
374375
@ -- have values assigned to them. So we are not really dealing with
375376
@ -- tags here. These are really properties. But we are going to
376377
@ -- keep calling them tags because in many cases the value is ignored.
@@ -466,13 +467,11 @@
466467
# define TAG_PRIVATE 6 /* Do not sync */
467468
# define TAG_CLUSTER 7 /* A cluster */
468469
# define TAG_BRANCH 8 /* Value is name of the current branch */
469470
# define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
470471
# define TAG_PARENT 10 /* Change to parentage on a check-in */
471
-#endif
472
-#if EXPORT_INTERFACE
473
-# define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
472
+# define TAG_NOTE 11 /* Extra text appended to a check-in comment */
474473
#endif
475474
476475
/*
477476
** The schema for the local FOSSIL database file found at the root
478477
** of every check-out. This database contains the complete state of
479478
--- src/schema.c
+++ src/schema.c
@@ -367,10 +367,11 @@
367 @ INSERT INTO tag VALUES(6, 'private'); -- TAG_PRIVATE
368 @ INSERT INTO tag VALUES(7, 'cluster'); -- TAG_CLUSTER
369 @ INSERT INTO tag VALUES(8, 'branch'); -- TAG_BRANCH
370 @ INSERT INTO tag VALUES(9, 'closed'); -- TAG_CLOSED
371 @ INSERT INTO tag VALUES(10,'parent'); -- TAG_PARENT
 
372 @
373 @ -- Assignments of tags to baselines. Note that we allow tags to
374 @ -- have values assigned to them. So we are not really dealing with
375 @ -- tags here. These are really properties. But we are going to
376 @ -- keep calling them tags because in many cases the value is ignored.
@@ -466,13 +467,11 @@
466 # define TAG_PRIVATE 6 /* Do not sync */
467 # define TAG_CLUSTER 7 /* A cluster */
468 # define TAG_BRANCH 8 /* Value is name of the current branch */
469 # define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
470 # define TAG_PARENT 10 /* Change to parentage on a check-in */
471 #endif
472 #if EXPORT_INTERFACE
473 # define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
474 #endif
475
476 /*
477 ** The schema for the local FOSSIL database file found at the root
478 ** of every check-out. This database contains the complete state of
479
--- src/schema.c
+++ src/schema.c
@@ -367,10 +367,11 @@
367 @ INSERT INTO tag VALUES(6, 'private'); -- TAG_PRIVATE
368 @ INSERT INTO tag VALUES(7, 'cluster'); -- TAG_CLUSTER
369 @ INSERT INTO tag VALUES(8, 'branch'); -- TAG_BRANCH
370 @ INSERT INTO tag VALUES(9, 'closed'); -- TAG_CLOSED
371 @ INSERT INTO tag VALUES(10,'parent'); -- TAG_PARENT
372 @ INSERT INTO tag VALUES(11,'note'); -- TAG_NOTE
373 @
374 @ -- Assignments of tags to baselines. Note that we allow tags to
375 @ -- have values assigned to them. So we are not really dealing with
376 @ -- tags here. These are really properties. But we are going to
377 @ -- keep calling them tags because in many cases the value is ignored.
@@ -466,13 +467,11 @@
467 # define TAG_PRIVATE 6 /* Do not sync */
468 # define TAG_CLUSTER 7 /* A cluster */
469 # define TAG_BRANCH 8 /* Value is name of the current branch */
470 # define TAG_CLOSED 9 /* Do not display this check-in as a leaf */
471 # define TAG_PARENT 10 /* Change to parentage on a check-in */
472 # define TAG_NOTE 11 /* Extra text appended to a check-in comment */
 
 
473 #endif
474
475 /*
476 ** The schema for the local FOSSIL database file found at the root
477 ** of every check-out. This database contains the complete state of
478

Keyboard Shortcuts

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