Fossil SCM

commit not longer requires a comment (it uses a placeholder) when in dry-run mode, per ML request.

stephan 2013-08-13 09:14 trunk
Commit 75e042503bfe90144f7d6914aac9b6b3156cfa1a
1 file changed +5
--- src/checkin.c
+++ src/checkin.c
@@ -1526,10 +1526,15 @@
15261526
blob_append(&comment, zComment, -1);
15271527
}else if( zComFile ){
15281528
blob_zero(&comment);
15291529
blob_read_from_file(&comment, zComFile);
15301530
blob_to_utf8_no_bom(&comment, 1);
1531
+ }else if(dryRunFlag){
1532
+ blob_zero(&comment);
1533
+ blob_append(&comment, "Dry-run mode - no comment provided.", -1)
1534
+ /* Comment needed to avoid downstream assertion. */
1535
+ ;
15311536
}else{
15321537
char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'");
15331538
prepare_commit_comment(&comment, zInit, &sCiInfo, vid);
15341539
if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
15351540
blob_zero(&ans);
15361541
--- src/checkin.c
+++ src/checkin.c
@@ -1526,10 +1526,15 @@
1526 blob_append(&comment, zComment, -1);
1527 }else if( zComFile ){
1528 blob_zero(&comment);
1529 blob_read_from_file(&comment, zComFile);
1530 blob_to_utf8_no_bom(&comment, 1);
 
 
 
 
 
1531 }else{
1532 char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'");
1533 prepare_commit_comment(&comment, zInit, &sCiInfo, vid);
1534 if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
1535 blob_zero(&ans);
1536
--- src/checkin.c
+++ src/checkin.c
@@ -1526,10 +1526,15 @@
1526 blob_append(&comment, zComment, -1);
1527 }else if( zComFile ){
1528 blob_zero(&comment);
1529 blob_read_from_file(&comment, zComFile);
1530 blob_to_utf8_no_bom(&comment, 1);
1531 }else if(dryRunFlag){
1532 blob_zero(&comment);
1533 blob_append(&comment, "Dry-run mode - no comment provided.", -1)
1534 /* Comment needed to avoid downstream assertion. */
1535 ;
1536 }else{
1537 char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'");
1538 prepare_commit_comment(&comment, zInit, &sCiInfo, vid);
1539 if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
1540 blob_zero(&ans);
1541

Keyboard Shortcuts

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