Fossil SCM

I think I fix the previous commit, that should avoid committing a ticket manifest if it has no changes. It was ignoring the ticket appends. In the case of only appending, the user was not notified not properly redirected, and the ticket chagnes were not committed. Still, there should be some kind of warning to the user, if it ends up in such situation, I think.

viriketo 2012-10-17 14:04 trunk
Commit f02946aa8b4e27124c1e5840ef907a60dc875025
1 file changed +1
+1
--- src/tkt.c
+++ src/tkt.c
@@ -446,10 +446,11 @@
446446
free(zDate);
447447
for(i=0; i<nField; i++){
448448
if( azAppend[i] ){
449449
blob_appendf(&tktchng, "J +%s %z\n", azField[i],
450450
fossilize(azAppend[i], -1));
451
+ ++nJ;
451452
}
452453
}
453454
for(i=0; i<nField; i++){
454455
const char *zValue;
455456
int nValue;
456457
--- src/tkt.c
+++ src/tkt.c
@@ -446,10 +446,11 @@
446 free(zDate);
447 for(i=0; i<nField; i++){
448 if( azAppend[i] ){
449 blob_appendf(&tktchng, "J +%s %z\n", azField[i],
450 fossilize(azAppend[i], -1));
 
451 }
452 }
453 for(i=0; i<nField; i++){
454 const char *zValue;
455 int nValue;
456
--- src/tkt.c
+++ src/tkt.c
@@ -446,10 +446,11 @@
446 free(zDate);
447 for(i=0; i<nField; i++){
448 if( azAppend[i] ){
449 blob_appendf(&tktchng, "J +%s %z\n", azField[i],
450 fossilize(azAppend[i], -1));
451 ++nJ;
452 }
453 }
454 for(i=0; i<nField; i++){
455 const char *zValue;
456 int nValue;
457

Keyboard Shortcuts

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