Fossil SCM
Prefer the editted comment and editted user over the originals when doing an export to git.
Commit
83e4f8660ccf5a770a4647eb4abd347bd31bdca7
Parent
dede23732aa7725…
1 file changed
+2
-2
+2
-2
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -232,12 +232,12 @@ | ||
| 232 | 232 | db_finalize(&q3); |
| 233 | 233 | |
| 234 | 234 | /* Output the commit records. |
| 235 | 235 | */ |
| 236 | 236 | 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)," | |
| 239 | 239 | " (SELECT value FROM tagxref WHERE rid=objid AND tagid=%d)" |
| 240 | 240 | " FROM event" |
| 241 | 241 | " WHERE type='ci' AND NOT EXISTS (SELECT 1 FROM oldcommit WHERE objid=rid)" |
| 242 | 242 | " ORDER BY mtime ASC", |
| 243 | 243 | TAG_BRANCH |
| 244 | 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(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 |