Fossil SCM

Prefer the editted comment and editted user over the originals when doing an export to git.

drh 2014-10-06 17:34 trunk
Commit 83e4f8660ccf5a770a4647eb4abd347bd31bdca7
1 file changed +2 -2
+2 -2
--- src/export.c
+++ src/export.c
@@ -232,12 +232,12 @@
232232
db_finalize(&q3);
233233
234234
/* Output the commit records.
235235
*/
236236
db_prepare(&q,
237
- "SELECT strftime('%%s',mtime), objid, coalesce(comment,ecomment),"
238
- " coalesce(user,euser),"
237
+ "SELECT strftime('%%s',mtime), objid, coalesce(ecomment,comment),"
238
+ " coalesce(euser,user),"
239239
" (SELECT value FROM tagxref WHERE rid=objid AND tagid=%d)"
240240
" FROM event"
241241
" WHERE type='ci' AND NOT EXISTS (SELECT 1 FROM oldcommit WHERE objid=rid)"
242242
" ORDER BY mtime ASC",
243243
TAG_BRANCH
244244
--- src/export.c
+++ src/export.c
@@ -232,12 +232,12 @@
232 db_finalize(&q3);
233
234 /* Output the commit records.
235 */
236 db_prepare(&q,
237 "SELECT strftime('%%s',mtime), objid, coalesce(comment,ecomment),"
238 " coalesce(user,euser),"
239 " (SELECT value FROM tagxref WHERE rid=objid AND tagid=%d)"
240 " FROM event"
241 " WHERE type='ci' AND NOT EXISTS (SELECT 1 FROM oldcommit WHERE objid=rid)"
242 " ORDER BY mtime ASC",
243 TAG_BRANCH
244
--- src/export.c
+++ src/export.c
@@ -232,12 +232,12 @@
232 db_finalize(&q3);
233
234 /* Output the commit records.
235 */
236 db_prepare(&q,
237 "SELECT strftime('%%s',mtime), objid, coalesce(ecomment,comment),"
238 " coalesce(euser,user),"
239 " (SELECT value FROM tagxref WHERE rid=objid AND tagid=%d)"
240 " FROM event"
241 " WHERE type='ci' AND NOT EXISTS (SELECT 1 FROM oldcommit WHERE objid=rid)"
242 " ORDER BY mtime ASC",
243 TAG_BRANCH
244

Keyboard Shortcuts

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