Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch urmil Excluding Merge-Ins
This is equivalent to a diff from 2e51be8ec2 to d9b35c294c
|
2014-06-29
| ||
| 08:30 | Taking latest updates from trunk Leaf check-in: c87fe42872 user: urmil tags: urmil-backup | |
| 06:39 | Taking latest updates from trunk Leaf check-in: d9b35c294c user: urmil tags: urmil | |
|
2014-06-27
| ||
| 23:19 | Fix a possible NULL pointer dereference in the "fusefs" implementation. Leaf check-in: 2e51be8ec2 user: drh tags: trunk | |
| 15:32 | Add "server-id" printout to "fossil dbstat". Only print project-id if there is one. check-in: 88d503e15b user: jan.nijtmans tags: trunk | |
|
2014-04-15
| ||
| 05:13 | Taking latest updates from trunk check-in: a9daf1161e user: urmil tags: urmil | |
Changes to src/clone.c.
| ︙ | ︙ | |||
174 175 176 177 178 179 180 |
db_set("ssl-identity", blob_str(&fn), 0);
blob_reset(&fn);
}
db_multi_exec(
"REPLACE INTO config(name,value,mtime)"
" VALUES('server-code', lower(hex(randomblob(20))), now());"
);
| | | 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
db_set("ssl-identity", blob_str(&fn), 0);
blob_reset(&fn);
}
db_multi_exec(
"REPLACE INTO config(name,value,mtime)"
" VALUES('server-code', lower(hex(randomblob(20))), now());"
);
url_enable_proxy("via proxy: ");
clone_ssh_db_set_options();
url_get_password_if_needed();
g.xlinkClusterOnly = 1;
nErr = client_sync(SYNC_CLONE | bPrivate,CONFIGSET_ALL,0);
g.xlinkClusterOnly = 0;
verify_cancel();
db_end_transaction(0);
|
| ︙ | ︙ |
Changes to src/diffcmd.c.
| ︙ | ︙ | |||
410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
}
if( srcid>0 ){
content_get(srcid, &content);
}else{
blob_zero(&content);
}
isBin = fIncludeBinary ? 0 : looks_like_binary(&content);
diff_print_index(zPathname, diffFlags);
diff_file(&content, isBin, zFullName, zPathname, zDiffCmd,
zBinGlob, fIncludeBinary, diffFlags);
blob_reset(&content);
}
free(zToFree);
}
| > | 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
}
if( srcid>0 ){
content_get(srcid, &content);
}else{
blob_zero(&content);
}
isBin = fIncludeBinary ? 0 : looks_like_binary(&content);
if (!zDiffCmd)
diff_print_index(zPathname, diffFlags);
diff_file(&content, isBin, zFullName, zPathname, zDiffCmd,
zBinGlob, fIncludeBinary, diffFlags);
blob_reset(&content);
}
free(zToFree);
}
|
| ︙ | ︙ |
Changes to src/file.c.
| ︙ | ︙ | |||
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
while( zPath[i-1]!='/' ){ i--; }
if( zPwd[0]=='/' && strlen(zPwd)==1 ){
/* If on '/', don't go to higher level */
blob_zero(&tmp);
}else{
blob_set(&tmp, "../");
}
for(j=i; zPwd[j]; j++){
if( zPwd[j]=='/' ){
blob_append(&tmp, "../", 3);
}
}
blob_append(&tmp, &zPath[i], -1);
blob_reset(pOut);
| > > | 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
while( zPath[i-1]!='/' ){ i--; }
if( zPwd[0]=='/' && strlen(zPwd)==1 ){
/* If on '/', don't go to higher level */
blob_zero(&tmp);
}else{
blob_set(&tmp, "../");
}
if (zPwd[i]==0)
blob_set(&tmp, "./");
for(j=i; zPwd[j]; j++){
if( zPwd[j]=='/' ){
blob_append(&tmp, "../", 3);
}
}
blob_append(&tmp, &zPath[i], -1);
blob_reset(pOut);
|
| ︙ | ︙ |
Changes to src/skins.c.
| ︙ | ︙ | |||
937 938 939 940 941 942 943 944 945 946 947 948 949 950 | @ <div class="footer"> @ Fossil version $manifest_version $manifest_date @ </div> @ </body></html> @ '); ; /* ** This skin is intended to be almost identical to the default one, with the ** following changes to the header and footer: ** ** 1. The logo image in the header has been modified to be a hyperlink to the ** root of the web site containing the repository using the same scheme | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 |
@ <div class="footer">
@ Fossil version $manifest_version $manifest_date
@ </div>
@ </body></html>
@ ');
;
/*
** Derivative of Shiny Fossil theme (http://codingrobots.org/p/shiny-theme/home).
** - Removed logo
** - Changed font to Verdana
*/
static const char zBuiltinSkinShinyFossil[] =
@ REPLACE INTO config(name,mtime,value) VALUES('css',now(),'
@ /* General settings for the entire page */
@ body {
@ margin: 0ex 1ex;
@ padding: 0;
@ background-color: #333;
@ font-family: Verdana, "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
@ font-size: 12pt;
@ color: #000;
@ text-align: center; /* workaround for IE box centering */
@ }
@
@ /* Header includes logo and project name */
@ div.header {
@ margin: auto;
@ min-width: 850px;
@ width: 94%;
@ margin-top: 20px;
@ }
@
@ /* The project logo at the top of each page */
@ div.logo {
@ text-align: center;
@ font-weight: bold;
@ color: #fff;
@ text-shadow: 0 1px #000;
@ }
@
@ /* The page title under main menu */
@ div.title {
@ font-size: 1.2em;
@ font-weight: bold;
@ text-align: left;
@ color: #333;
@ margin-left: 20px;
@ margin-top: 0;
@ padding-top: 20px;
@ text-shadow: 0 1px #fff;
@ }
@
@ /* The login status message in the top right-hand corner */
@ div.status {
@ float: right;
@ text-align: right;
@ color: #777;
@ font-size: 0.8em;
@ margin-top: 20px;
@ margin-right: 20px;
@ }
@
@ /* The main menu bar that appears at the top of the page beneath
@ ** the header */
@ div.mainmenu {
@ padding: 10px 0;
@ font-size: 0.9em;
@ font-weight: bold;
@ text-align: center;
@ background: #315FD5;
@ -webkit-border-top-left-radius: 10px;
@ -webkit-border-top-right-radius: 10px;
@ -moz-border-radius-topleft: 10px;
@ -moz-border-radius-topright: 10px;
@ border-top-left-radius: 10px;
@ border-top-right-radius: 10px;
@ border-top: 1px solid #69F;
@ border-bottom: 1px solid #152952;
@ text-shadow: 0 -1px #152952;
@ margin-bottom: 0;
@ }
@
@ /* The submenu bar that *sometimes* appears below the main menu */
@ div.submenu {
@ padding: 3px 10px 3px 0px;
@ font-size: 0.75em;
@ text-align: center;
@ color: #333;
@ margin-top: -23px; /* push it to top between page title and status */
@ margin-bottom: 2px;
@ }
@
@ div.mainmenu a:link, div.mainmenu a:visited {
@ padding: 3px 10px 3px 10px;
@ color: #fff;
@ text-decoration: none;
@ border: 0;
@ }
@
@ div.submenu a:link, div.submenu a:visited {
@ padding: 1px 10px;
@ color: #222;
@ border: 1px solid #BDBDBD;
@ background: #EEE;
@ -webkit-border-radius: 10px;
@ -moz-border-radius: 10px;
@ border-radius: 10px;
@ text-decoration: none;
@ text-shadow: 0 1px #fff;
@ }
@
@ div.submenu a:hover {
@ color: #fff;
@ background: #858585;
@ border-color: #5B5B5B;
@ text-shadow: 0 1px #000;
@ }
@
@ div.mainmenu a:hover, div.mainmenu a:visited:hover {
@ color: #9CF;
@ text-decoration: none;
@ }
@
@ div.container {
@ margin: auto;
@ min-width: 850px;
@ width: 94%;
@ background: #69F;
@ margin-top: 20px;
@ }
@
@ div.container, div.subcontainer {
@ background: #f4f4f4;
@ -webkit-border-radius: 10px;
@ -moz-border-radius: 10px;
@ border-radius: 10px;
@ margin-bottom: 0;
@ text-align: left;
@ }
@
@ div.subcontainer {
@ width: 100%;
@ -webkit-border-top-left-radius: 0;
@ -webkit-border-top-right-radius: 0;
@ -moz-border-radius-topleft: 0;
@ -moz-border-radius-topright: 0;
@ border-top-left-radius: 0;
@ border-top-right-radius: 0;
@ }
@
@ /* All page content from the bottom of the menu or submenu down to
@ ** the footer */
@ div.content {
@ padding: 10px 20px 20px 20px;
@ font-size: 0.8em;
@ }
@
@ /* Some pages have section dividers */
@ div.section {
@ margin-bottom: 0px;
@ margin-top: 1em;
@ padding: 1px 1px 1px 1px;
@ font-size: 1.2em;
@ font-weight: bold;
@ color: #5B677E;
@ border-bottom: 2px solid #B6BECD;
@ }
@
@ /* The "Date" that occurs on the left hand side of timelines */
@ div.divider {
@ border-bottom: 2px solid #B6BECD;
@ font-size: 1em; font-weight: normal;
@ padding-bottom: .25em;
@ margin: .5em 0 .5em 0;
@ float: left;
@ clear: left;
@ color: #5B677E;
@ }
@
@ /* The footer at the very bottom of the page */
@ div.footer {
@ margin: auto;
@ min-width: 850px;
@ width: 94%;
@ font-size: 0.8em;
@ padding: 5px 10px 5px 10px;
@ text-align: right;
@ color: #777;
@ margin-top: 10px;
@ margin-bottom: 10px;
@ }
@
@ /* Make the links in the footer less ugly... */
@ div.footer a { color: white; }
@ div.footer a:link { color: white; }
@ div.footer a:visited { color: white; }
@ div.footer a:hover { background-color: white; color: #558195; }
@
@ /* <verbatim> blocks */
@ pre.verbatim {
@ background-color: #f3f3f3;
@ padding: 0.5em;
@ }
@
@ /* The label/value pairs on (for example) the ci page */
@ table.label-value th {
@ vertical-align: top;
@ text-align: right;
@ padding: 0.2ex 2ex;
@ }
@
@ /* For marking important UI elements which shouldn''t be
@ lightly dismissed. I mainly use it to mark "not yet
@ implemented" parts of a page. Whether or not to have
@ a ''border'' attribute set is arguable. */
@ .achtung {
@ color: #ff0000;
@ background: #ffff00;
@ border: 1px solid #ff0000;
@ }
@
@ div.miniform {
@ font-size: smaller;
@ margin: 8px;
@ }
@
@ hr {
@ height: 0;
@ color: #ccc;
@ background-color: #ccc;
@ border: 0;
@ margin-top: 15px;
@ margin-bottom: 15px;
@ border-top: 1px solid #ccc;
@ border-bottom: 1px solid #fff;
@ }
@
@ table {
@ font-size: 1em;
@ }
@
@ a:link {
@ color: #004080;
@ text-decoration: none;
@ }
@
@ a:visited {
@ color: #6A4A95;
@ text-decoration: none;
@ }
@
@ a:hover {
@ color: #24548F;
@ text-decoration: underline;
@ }
@
@ a:visited:hover {
@ color: #6A4A95;
@ text-decoration: underline;
@ }
@
@ table.report {
@ margin-bottom: 1em;
@ border: 1px solid #bbb;
@ border-spacing: 0;
@ border-collapse: collapse;
@ }
@
@ table.report td, table.report th {
@ border: 1px solid #bbb;
@ border-width: 1px;
@ border-spacing: 0;
@ padding: 4px;
@ }
@
@ /* Ticket view */
@
@ td.tkt-label {
@ text-align: right;
@ color: #666;
@ }
@
@ td.tkt-label-comments {
@ color: #666;
@ }
@
@ td.tkt-value, td.tkt-value-comments {
@ background-color: #fcfcfc;
@ border: 1px solid #ddd;
@ -webkit-border-radius: 3px;
@ -webkit-border-radius: 3px;
@ -moz-border-radius: 3px;
@ -moz-border-radius: 3px;
@ border-radius: 3px;
@ border-radius: 3px;
@ }
@
@ td.tkt-value-comments {
@ padding: 15px;
@ }
@
@ /* Retro side by side diff colors */
@ span.diffadd {
@ background-color: rgb(220, 244, 220);
@ }
@ span.diffrm {
@ background-color: rgb(244, 220, 220);
@ }
@ span.diffchng {
@ background-color: rgb(220, 220, 244);
@ }
@ ');
@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'
@ <html>
@ <head>
@ <base href="$baseurl/$current_page" />
@ <title>$<project_name>: $<title></title>
@ <link rel="alternate" type="application/rss+xml" title="RSS Feed"
@ href="$home/timeline.rss" />
@ <link rel="stylesheet" href="$home/style.css" type="text/css"
@ media="screen" />
@ </head>
@ <body>
@ <div class="header">
@ <div class="logo">
@ <nobr>$<project_name></nobr>
@ </div>
@ </div>
@ <div class="container">
@ <div class="mainmenu">
@ <th1>
@ html "<a href=''$home$index_page''>Home</a>\n"
@ if {[anycap jor]} {
@ html "<a href=''$home/timeline''>Timeline</a>\n"
@ }
@ if {[hascap oh]} {
@ html "<a href=''$home/tree?ci=tip''>Files</a>\n"
@ }
@ if {[hascap o]} {
@ html "<a href=''$home/leaves''>Leaves</a>\n"
@ html "<a href=''$home/brlist''>Branches</a>\n"
@ html "<a href=''$home/taglist''>Tags</a>\n"
@ }
@ if {[hascap r]} {
@ html "<a href=''$home/reportlist''>Tickets</a>\n"
@ }
@ if {[hascap j]} {
@ html "<a href=''$home/wiki''>Wiki</a>\n"
@ }
@ if {[hascap s]} {
@ html "<a href=''$home/setup''>Admin</a>\n"
@ } elseif {[hascap a]} {
@ html "<a href=''$home/setup_ulist''>Users</a>\n"
@ }
@ if {[info exists login]} {
@ html "<a href=''$home/login''>Logout</a>\n"
@ } else {
@ html "<a href=''$home/login''>Login</a>\n"
@ }
@ </th1></div>
@ <div class="subcontainer">
@ <div class="status"><th1>
@ if {[info exists login]} {
@ puts "Logged in as $login"
@ } else {
@ puts "Not logged in"
@ }
@ </th1></div>
@ <div class="title">$<title></div>
@ ');
@ REPLACE INTO config(name,mtime,value) VALUES('footer',now(),'
@ </div><!-- / subcontainer -->
@ </div><!-- / container -->
@ <div class="footer">
@ Fossil version $manifest_version $manifest_date
@ </div>
@ </body></html>
@ ');
;
/*
** This skin is intended to be almost identical to the default one, with the
** following changes to the header and footer:
**
** 1. The logo image in the header has been modified to be a hyperlink to the
** root of the web site containing the repository using the same scheme
|
| ︙ | ︙ | |||
1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 |
} aBuiltinSkin[] = {
{ "Default", 0 /* Filled in at runtime */ },
{ "Plain Gray, No Logo", zBuiltinSkin1 },
{ "Khaki, No Logo", zBuiltinSkin2 },
{ "Black & White, Menu on Left", zBuiltinSkin3 },
{ "Shadow boxes & Rounded Corners", zBuiltinSkin4 },
{ "Enhanced Default", zBuiltinSkin5 },
};
/*
** For a skin named zSkinName, compute the name of the CONFIG table
** entry where that skin is stored and return it.
**
** Return NULL if zSkinName is NULL or an empty string.
| > | 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 |
} aBuiltinSkin[] = {
{ "Default", 0 /* Filled in at runtime */ },
{ "Plain Gray, No Logo", zBuiltinSkin1 },
{ "Khaki, No Logo", zBuiltinSkin2 },
{ "Black & White, Menu on Left", zBuiltinSkin3 },
{ "Shadow boxes & Rounded Corners", zBuiltinSkin4 },
{ "Enhanced Default", zBuiltinSkin5 },
{ "Shiny Fossil", zBuiltinSkinShinyFossil },
};
/*
** For a skin named zSkinName, compute the name of the CONFIG table
** entry where that skin is stored and return it.
**
** Return NULL if zSkinName is NULL or an empty string.
|
| ︙ | ︙ |
Changes to src/sqlcmd.c.
| ︙ | ︙ | |||
125 126 127 128 129 130 131 | g.db = db; return SQLITE_OK; } /* ** COMMAND: sqlite3 ** | | < < | | > | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
g.db = db;
return SQLITE_OK;
}
/*
** COMMAND: sqlite3
**
** Usage: %fossil sqlite3 DATABASE ?OPTIONS?
**
** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS.
**
** WARNING: Careless use of this command can corrupt a Fossil repository
** in ways that are unrecoverable. Be sure you know what you are doing before
** running any SQL commands that modifies the repository database.
*/
void cmd_sqlite3(void){
extern int sqlite3_shell(int, char**);
if( g.argc<3 ){
usage("DATABASE");
}
sqlite3_shutdown();
sqlite3_shell(g.argc-1, g.argv+1);
g.db = 0;
}
/*
** This routine is called by the patched sqlite3 command-line shell in order
|
| ︙ | ︙ |
Changes to src/timeline.c.
| ︙ | ︙ | |||
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
#define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */
#define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */
#endif
/*
** Hash a string and use the hash to determine a background color.
*/
char *hash_color(const char *z){
int i; /* Loop counter */
unsigned int h = 0; /* Hash on the branch name */
int r, g, b; /* Values for red, green, and blue */
int h1, h2, h3, h4; /* Elements of the hash value */
int mx, mn; /* Components of HSV */
static char zColor[10]; /* The resulting color */
static int ix[2] = {0,0}; /* Color chooser parameters */
if( ix[0]==0 ){
if( db_get_boolean("white-foreground", 0) ){
ix[0] = 140;
ix[1] = 40;
}else{
ix[0] = 216;
| > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
#define TIMELINE_FRENAMES 0x0100 /* Detail only file name changes */
#define TIMELINE_UNHIDE 0x0200 /* Unhide check-ins with "hidden" tag */
#endif
/*
** Hash a string and use the hash to determine a background color.
*/
char *hash_color_hsv(const char *z){
int i; /* Loop counter, intermediate value */
unsigned int hash = 0; /* Hash on the branch name */
int r, g, b; /* Values for red, green, and blue */
float h, s, v; /* Values for hue, saturation and value */
float f, p, q, t; /* Intermediate values */
static char zColor[10]; /* The resulting color */
for(i=0; z[i]; i++ ){
hash = (hash<<11) ^ (hash<<1) ^ (hash>>3) ^ z[i];
}
// Calculate or assume HSV
if( db_get_boolean("white-foreground", 0) ) {
h = hash % 360; hash /= 360;
s = 0.7 + (hash % 5) / 100.0; hash /= 5;
v = 0.3 - (hash % 5) / 100.0; hash /= 5;
}
else {
h = hash % 360; hash /= 360;
s = 0.1 + (hash % 5) / 100.0; hash /= 5;
v = 1.0 - (hash % 5) / 100.0; hash /= 5;
}
// Conversion
// Reference: http://www.cs.rit.edu/~ncs/color/t_convert.html
h = h / 60.0;
i = h;
f = h - i;
p = v * (1 - s);
q = v * (1 - s * f);
t = v * (1 - s * (1 - f));
// Calculate RGB
switch( i ){
case 0: r = v * 255; g = t * 255, b = p * 255; break;
case 1: r = q * 255; g = v * 255, b = p * 255; break;
case 2: r = p * 255; g = v * 255, b = t * 255; break;
case 3: r = p * 255; g = q * 255, b = v * 255; break;
case 4: r = t * 255; g = p * 255, b = v * 255; break;
default: r = v * 255; g = p * 255, b = q * 255; break;
}
sqlite3_snprintf(8, zColor, "#%02x%02x%02x", r,g,b);
return zColor;
}
char *hash_color(const char *z){
int i; /* Loop counter */
unsigned int h = 0; /* Hash on the branch name */
int r, g, b; /* Values for red, green, and blue */
int h1, h2, h3, h4; /* Elements of the hash value */
int mx, mn; /* Components of HSV */
static char zColor[10]; /* The resulting color */
static int ix[2] = {0,0}; /* Color chooser parameters */
return (hash_color_hsv (z));
if( ix[0]==0 ){
if( db_get_boolean("white-foreground", 0) ){
ix[0] = 140;
ix[1] = 40;
}else{
ix[0] = 216;
|
| ︙ | ︙ |
Added tools/color.xls.
cannot compute difference between binary files
Added www/home.wiki.
> > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <title>Home Page</title> <font size="4"> This is a clone of [http://fossil-scm.org | Fossil] with some custom changes. </font> For information about what is fossil, please refer original home of fossil at [http://fossil-scm.org]. <h4>List of customizations</h4> <ul> <li> If graphical diff utility is specified (in settings), <code>gdiff</code> command uses graphical diff utility even if there are more than one files to diff. <li> Minor fixes to show relative paths correctly. <li> Require <code>DATABASE</code> parameter to <code>sqlite3</code> command and let this command be run from outside an open repository. <li> Use HSV based algorithm to select background colors for branches in timeline. <li> Add a custom skin named 'Shiny Fossil' to default list of skins. </ul> This clone is maintained by Urmil Parikh. All above changes are under branch: <code>urmil</code>. |