Fossil SCM

Somewhat simpler SELECT expression which works with older SQLite versions as well (and gives exactly the same output). Typo.

jan.nijtmans 2014-10-15 07:16 trunk
Commit c5588966c099011244519a9920da69135bb20198
2 files changed +1 -1 +3 -3
+1 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -131,11 +131,11 @@
131131
** sync Run a "sync" on all repositories. Only the --verbose
132132
** option is supported.
133133
**
134134
** setting Run the "setting", "set", or "unset" commands on all
135135
** set repositories. These command are particularly useful in
136
-** unset conjunection with the "max-loadavg" setting which cannot
136
+** unset conjunction with the "max-loadavg" setting which cannot
137137
** otherwise be set globally.
138138
**
139139
** Repositories are automatically added to the set of known repositories
140140
** when one of the following commands are run against the repository:
141141
** clone, info, pull, push, or sync. Even previously ignored repositories
142142
--- src/allrepo.c
+++ src/allrepo.c
@@ -131,11 +131,11 @@
131 ** sync Run a "sync" on all repositories. Only the --verbose
132 ** option is supported.
133 **
134 ** setting Run the "setting", "set", or "unset" commands on all
135 ** set repositories. These command are particularly useful in
136 ** unset conjunection with the "max-loadavg" setting which cannot
137 ** otherwise be set globally.
138 **
139 ** Repositories are automatically added to the set of known repositories
140 ** when one of the following commands are run against the repository:
141 ** clone, info, pull, push, or sync. Even previously ignored repositories
142
--- src/allrepo.c
+++ src/allrepo.c
@@ -131,11 +131,11 @@
131 ** sync Run a "sync" on all repositories. Only the --verbose
132 ** option is supported.
133 **
134 ** setting Run the "setting", "set", or "unset" commands on all
135 ** set repositories. These command are particularly useful in
136 ** unset conjunction with the "max-loadavg" setting which cannot
137 ** otherwise be set globally.
138 **
139 ** Repositories are automatically added to the set of known repositories
140 ** when one of the following commands are run against the repository:
141 ** clone, info, pull, push, or sync. Even previously ignored repositories
142
+3 -3
--- src/stat.c
+++ src/stat.c
@@ -235,13 +235,13 @@
235235
fossil_print("%*s%d (%d changes)\n", colWidth, "tickets:", n, m);
236236
n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='e'");
237237
fossil_print("%*s%d\n", colWidth, "events:", n);
238238
n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='g'");
239239
fossil_print("%*s%d\n", colWidth, "tagchanges:", n);
240
- z = db_text(0, "SELECT datetime(mtime) ||"
241
- " printf(' - about %%d days ago ',julianday('now') - mtime)"
242
- " FROM event "
240
+ z = db_text(0, "SELECT datetime(mtime) || ' - about ' ||"
241
+ " CAST(julianday('now') - mtime AS INTEGER)"
242
+ " || ' days ago' FROM event "
243243
" ORDER BY mtime DESC LIMIT 1");
244244
fossil_print("%*s%s\n", colWidth, "latest-change:", z);
245245
}
246246
n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)"
247247
" + 0.99");
248248
--- src/stat.c
+++ src/stat.c
@@ -235,13 +235,13 @@
235 fossil_print("%*s%d (%d changes)\n", colWidth, "tickets:", n, m);
236 n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='e'");
237 fossil_print("%*s%d\n", colWidth, "events:", n);
238 n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='g'");
239 fossil_print("%*s%d\n", colWidth, "tagchanges:", n);
240 z = db_text(0, "SELECT datetime(mtime) ||"
241 " printf(' - about %%d days ago ',julianday('now') - mtime)"
242 " FROM event "
243 " ORDER BY mtime DESC LIMIT 1");
244 fossil_print("%*s%s\n", colWidth, "latest-change:", z);
245 }
246 n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)"
247 " + 0.99");
248
--- src/stat.c
+++ src/stat.c
@@ -235,13 +235,13 @@
235 fossil_print("%*s%d (%d changes)\n", colWidth, "tickets:", n, m);
236 n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='e'");
237 fossil_print("%*s%d\n", colWidth, "events:", n);
238 n = db_int(0, "SELECT COUNT(*) FROM event WHERE type='g'");
239 fossil_print("%*s%d\n", colWidth, "tagchanges:", n);
240 z = db_text(0, "SELECT datetime(mtime) || ' - about ' ||"
241 " CAST(julianday('now') - mtime AS INTEGER)"
242 " || ' days ago' FROM event "
243 " ORDER BY mtime DESC LIMIT 1");
244 fossil_print("%*s%s\n", colWidth, "latest-change:", z);
245 }
246 n = db_int(0, "SELECT julianday('now') - (SELECT min(mtime) FROM event)"
247 " + 0.99");
248

Keyboard Shortcuts

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