Fossil SCM
Allow "with note" in timeline for all appropriate tags, not only +close and -close.
Commit
24bff454abf7a2e083fef5419ba72645dd73ea8a
Parent
a789e85ff63c432…
1 file changed
+16
-14
+16
-14
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -1958,46 +1958,42 @@ | ||
| 1958 | 1958 | if( strcmp(zName, "*branch")==0 ){ |
| 1959 | 1959 | blob_appendf(&comment, |
| 1960 | 1960 | " Move to branch [/timeline?r=%h&nd&dp=%S | %h].", |
| 1961 | 1961 | zValue, zUuid, zValue); |
| 1962 | 1962 | branchMove = 1; |
| 1963 | + continue; | |
| 1963 | 1964 | }else if( strcmp(zName, "*bgcolor")==0 ){ |
| 1964 | 1965 | blob_appendf(&comment, |
| 1965 | 1966 | " Change branch background color to \"%h\".", zValue); |
| 1967 | + continue; | |
| 1966 | 1968 | }else if( strcmp(zName, "+bgcolor")==0 ){ |
| 1967 | 1969 | blob_appendf(&comment, |
| 1968 | 1970 | " Change background color to \"%h\".", zValue); |
| 1971 | + continue; | |
| 1969 | 1972 | }else if( strcmp(zName, "-bgcolor")==0 ){ |
| 1970 | - blob_appendf(&comment, " Cancel background color."); | |
| 1973 | + blob_appendf(&comment, " Cancel background color"); | |
| 1971 | 1974 | }else if( strcmp(zName, "+comment")==0 ){ |
| 1972 | 1975 | blob_appendf(&comment, " Edit check-in comment."); |
| 1976 | + continue; | |
| 1973 | 1977 | }else if( strcmp(zName, "+user")==0 ){ |
| 1974 | 1978 | blob_appendf(&comment, " Change user to \"%h\".", zValue); |
| 1979 | + continue; | |
| 1975 | 1980 | }else if( strcmp(zName, "+date")==0 ){ |
| 1976 | 1981 | blob_appendf(&comment, " Timestamp %h.", zValue); |
| 1982 | + continue; | |
| 1977 | 1983 | }else if( memcmp(zName, "-sym-",5)==0 ){ |
| 1978 | - if( !branchMove ) blob_appendf(&comment, " Cancel tag %h.", &zName[5]); | |
| 1984 | + if( !branchMove ) blob_appendf(&comment, " Cancel tag \"%h\"", &zName[5]); | |
| 1979 | 1985 | }else if( memcmp(zName, "*sym-",5)==0 ){ |
| 1980 | 1986 | if( !branchMove ){ |
| 1981 | - blob_appendf(&comment, " Add propagating tag \"%h\".", &zName[5]); | |
| 1987 | + blob_appendf(&comment, " Add propagating tag \"%h\"", &zName[5]); | |
| 1982 | 1988 | } |
| 1983 | 1989 | }else if( memcmp(zName, "+sym-",5)==0 ){ |
| 1984 | - blob_appendf(&comment, " Add tag \"%h\".", &zName[5]); | |
| 1985 | - }else if( memcmp(zName, "-sym-",5)==0 ){ | |
| 1986 | - blob_appendf(&comment, " Cancel tag \"%h\".", &zName[5]); | |
| 1990 | + blob_appendf(&comment, " Add tag \"%h\"", &zName[5]); | |
| 1987 | 1991 | }else if( strcmp(zName, "+closed")==0 ){ |
| 1988 | 1992 | blob_append(&comment, " Marked \"Closed\"", -1); |
| 1989 | - if( zValue && *zValue ){ | |
| 1990 | - blob_appendf(&comment, " with note \"%h\"", zValue); | |
| 1991 | - } | |
| 1992 | - blob_append(&comment, ".", 1); | |
| 1993 | 1993 | }else if( strcmp(zName, "-closed")==0 ){ |
| 1994 | 1994 | blob_append(&comment, " Removed the \"Closed\" mark", -1); |
| 1995 | - if( zValue && *zValue ){ | |
| 1996 | - blob_appendf(&comment, " with note \"%h\"", zValue); | |
| 1997 | - } | |
| 1998 | - blob_append(&comment, ".", 1); | |
| 1999 | 1995 | }else { |
| 2000 | 1996 | if( zName[0]=='-' ){ |
| 2001 | 1997 | blob_appendf(&comment, " Cancel \"%h\"", &zName[1]); |
| 2002 | 1998 | }else if( zName[0]=='+' ){ |
| 2003 | 1999 | blob_appendf(&comment, " Add \"%h\"", &zName[1]); |
| @@ -2007,10 +2003,16 @@ | ||
| 2007 | 2003 | if( zValue && zValue[0] ){ |
| 2008 | 2004 | blob_appendf(&comment, " with value \"%h\".", zValue); |
| 2009 | 2005 | }else{ |
| 2010 | 2006 | blob_appendf(&comment, "."); |
| 2011 | 2007 | } |
| 2008 | + continue; | |
| 2009 | + } | |
| 2010 | + if( zValue && zValue[0] ){ | |
| 2011 | + blob_appendf(&comment, " with note \"%h\".", zValue); | |
| 2012 | + }else{ | |
| 2013 | + blob_appendf(&comment, "."); | |
| 2012 | 2014 | } |
| 2013 | 2015 | } |
| 2014 | 2016 | /*blob_appendf(&comment, " [[/info/%S | details]]");*/ |
| 2015 | 2017 | if( blob_size(&comment)==0 ) blob_append(&comment, " ", 1); |
| 2016 | 2018 | db_multi_exec( |
| 2017 | 2019 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1958,46 +1958,42 @@ | |
| 1958 | if( strcmp(zName, "*branch")==0 ){ |
| 1959 | blob_appendf(&comment, |
| 1960 | " Move to branch [/timeline?r=%h&nd&dp=%S | %h].", |
| 1961 | zValue, zUuid, zValue); |
| 1962 | branchMove = 1; |
| 1963 | }else if( strcmp(zName, "*bgcolor")==0 ){ |
| 1964 | blob_appendf(&comment, |
| 1965 | " Change branch background color to \"%h\".", zValue); |
| 1966 | }else if( strcmp(zName, "+bgcolor")==0 ){ |
| 1967 | blob_appendf(&comment, |
| 1968 | " Change background color to \"%h\".", zValue); |
| 1969 | }else if( strcmp(zName, "-bgcolor")==0 ){ |
| 1970 | blob_appendf(&comment, " Cancel background color."); |
| 1971 | }else if( strcmp(zName, "+comment")==0 ){ |
| 1972 | blob_appendf(&comment, " Edit check-in comment."); |
| 1973 | }else if( strcmp(zName, "+user")==0 ){ |
| 1974 | blob_appendf(&comment, " Change user to \"%h\".", zValue); |
| 1975 | }else if( strcmp(zName, "+date")==0 ){ |
| 1976 | blob_appendf(&comment, " Timestamp %h.", zValue); |
| 1977 | }else if( memcmp(zName, "-sym-",5)==0 ){ |
| 1978 | if( !branchMove ) blob_appendf(&comment, " Cancel tag %h.", &zName[5]); |
| 1979 | }else if( memcmp(zName, "*sym-",5)==0 ){ |
| 1980 | if( !branchMove ){ |
| 1981 | blob_appendf(&comment, " Add propagating tag \"%h\".", &zName[5]); |
| 1982 | } |
| 1983 | }else if( memcmp(zName, "+sym-",5)==0 ){ |
| 1984 | blob_appendf(&comment, " Add tag \"%h\".", &zName[5]); |
| 1985 | }else if( memcmp(zName, "-sym-",5)==0 ){ |
| 1986 | blob_appendf(&comment, " Cancel tag \"%h\".", &zName[5]); |
| 1987 | }else if( strcmp(zName, "+closed")==0 ){ |
| 1988 | blob_append(&comment, " Marked \"Closed\"", -1); |
| 1989 | if( zValue && *zValue ){ |
| 1990 | blob_appendf(&comment, " with note \"%h\"", zValue); |
| 1991 | } |
| 1992 | blob_append(&comment, ".", 1); |
| 1993 | }else if( strcmp(zName, "-closed")==0 ){ |
| 1994 | blob_append(&comment, " Removed the \"Closed\" mark", -1); |
| 1995 | if( zValue && *zValue ){ |
| 1996 | blob_appendf(&comment, " with note \"%h\"", zValue); |
| 1997 | } |
| 1998 | blob_append(&comment, ".", 1); |
| 1999 | }else { |
| 2000 | if( zName[0]=='-' ){ |
| 2001 | blob_appendf(&comment, " Cancel \"%h\"", &zName[1]); |
| 2002 | }else if( zName[0]=='+' ){ |
| 2003 | blob_appendf(&comment, " Add \"%h\"", &zName[1]); |
| @@ -2007,10 +2003,16 @@ | |
| 2007 | if( zValue && zValue[0] ){ |
| 2008 | blob_appendf(&comment, " with value \"%h\".", zValue); |
| 2009 | }else{ |
| 2010 | blob_appendf(&comment, "."); |
| 2011 | } |
| 2012 | } |
| 2013 | } |
| 2014 | /*blob_appendf(&comment, " [[/info/%S | details]]");*/ |
| 2015 | if( blob_size(&comment)==0 ) blob_append(&comment, " ", 1); |
| 2016 | db_multi_exec( |
| 2017 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1958,46 +1958,42 @@ | |
| 1958 | if( strcmp(zName, "*branch")==0 ){ |
| 1959 | blob_appendf(&comment, |
| 1960 | " Move to branch [/timeline?r=%h&nd&dp=%S | %h].", |
| 1961 | zValue, zUuid, zValue); |
| 1962 | branchMove = 1; |
| 1963 | continue; |
| 1964 | }else if( strcmp(zName, "*bgcolor")==0 ){ |
| 1965 | blob_appendf(&comment, |
| 1966 | " Change branch background color to \"%h\".", zValue); |
| 1967 | continue; |
| 1968 | }else if( strcmp(zName, "+bgcolor")==0 ){ |
| 1969 | blob_appendf(&comment, |
| 1970 | " Change background color to \"%h\".", zValue); |
| 1971 | continue; |
| 1972 | }else if( strcmp(zName, "-bgcolor")==0 ){ |
| 1973 | blob_appendf(&comment, " Cancel background color"); |
| 1974 | }else if( strcmp(zName, "+comment")==0 ){ |
| 1975 | blob_appendf(&comment, " Edit check-in comment."); |
| 1976 | continue; |
| 1977 | }else if( strcmp(zName, "+user")==0 ){ |
| 1978 | blob_appendf(&comment, " Change user to \"%h\".", zValue); |
| 1979 | continue; |
| 1980 | }else if( strcmp(zName, "+date")==0 ){ |
| 1981 | blob_appendf(&comment, " Timestamp %h.", zValue); |
| 1982 | continue; |
| 1983 | }else if( memcmp(zName, "-sym-",5)==0 ){ |
| 1984 | if( !branchMove ) blob_appendf(&comment, " Cancel tag \"%h\"", &zName[5]); |
| 1985 | }else if( memcmp(zName, "*sym-",5)==0 ){ |
| 1986 | if( !branchMove ){ |
| 1987 | blob_appendf(&comment, " Add propagating tag \"%h\"", &zName[5]); |
| 1988 | } |
| 1989 | }else if( memcmp(zName, "+sym-",5)==0 ){ |
| 1990 | blob_appendf(&comment, " Add tag \"%h\"", &zName[5]); |
| 1991 | }else if( strcmp(zName, "+closed")==0 ){ |
| 1992 | blob_append(&comment, " Marked \"Closed\"", -1); |
| 1993 | }else if( strcmp(zName, "-closed")==0 ){ |
| 1994 | blob_append(&comment, " Removed the \"Closed\" mark", -1); |
| 1995 | }else { |
| 1996 | if( zName[0]=='-' ){ |
| 1997 | blob_appendf(&comment, " Cancel \"%h\"", &zName[1]); |
| 1998 | }else if( zName[0]=='+' ){ |
| 1999 | blob_appendf(&comment, " Add \"%h\"", &zName[1]); |
| @@ -2007,10 +2003,16 @@ | |
| 2003 | if( zValue && zValue[0] ){ |
| 2004 | blob_appendf(&comment, " with value \"%h\".", zValue); |
| 2005 | }else{ |
| 2006 | blob_appendf(&comment, "."); |
| 2007 | } |
| 2008 | continue; |
| 2009 | } |
| 2010 | if( zValue && zValue[0] ){ |
| 2011 | blob_appendf(&comment, " with note \"%h\".", zValue); |
| 2012 | }else{ |
| 2013 | blob_appendf(&comment, "."); |
| 2014 | } |
| 2015 | } |
| 2016 | /*blob_appendf(&comment, " [[/info/%S | details]]");*/ |
| 2017 | if( blob_size(&comment)==0 ) blob_append(&comment, " ", 1); |
| 2018 | db_multi_exec( |
| 2019 |