Fossil SCM
'update' shows the commit date for the updated-from version, for consistency."
Commit
971dd2364df9f4ea2a420917c806dec7572556d15c11d04ce9880ed01eb2c752
Parent
07ed3fedfa0a59f…
1 file changed
+4
-2
+4
-2
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -556,16 +556,18 @@ | ||
| 556 | 556 | free(zFullPath); |
| 557 | 557 | free(zFullNewPath); |
| 558 | 558 | } |
| 559 | 559 | db_finalize(&q); |
| 560 | 560 | db_finalize(&mtimeXfer); |
| 561 | + fossil_print("%.79c\n",'-'); | |
| 561 | 562 | if( nUpdate==0 ){ |
| 562 | 563 | show_common_info(tid, "checkout:", 1, 0); |
| 563 | 564 | fossil_print("%-13s None. Already up-to-date\n", "changes:"); |
| 564 | 565 | }else{ |
| 565 | - fossil_print("%.79c\n%-13s %z\n",'-', "updated-from:", | |
| 566 | - rid_to_uuid(vid)); | |
| 566 | + fossil_print("%-13s %.40s %s\n", "updated-from:", rid_to_uuid(vid), | |
| 567 | + db_text("", "SELECT datetime(mtime) || ' UTC' FROM event " | |
| 568 | + " WHERE objid=%d", vid)); | |
| 567 | 569 | show_common_info(tid, "updated-to:", 1, 0); |
| 568 | 570 | fossil_print("%-13s %d file%s modified.\n", "changes:", |
| 569 | 571 | nUpdate, nUpdate>1 ? "s" : ""); |
| 570 | 572 | } |
| 571 | 573 | |
| 572 | 574 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -556,16 +556,18 @@ | |
| 556 | free(zFullPath); |
| 557 | free(zFullNewPath); |
| 558 | } |
| 559 | db_finalize(&q); |
| 560 | db_finalize(&mtimeXfer); |
| 561 | if( nUpdate==0 ){ |
| 562 | show_common_info(tid, "checkout:", 1, 0); |
| 563 | fossil_print("%-13s None. Already up-to-date\n", "changes:"); |
| 564 | }else{ |
| 565 | fossil_print("%.79c\n%-13s %z\n",'-', "updated-from:", |
| 566 | rid_to_uuid(vid)); |
| 567 | show_common_info(tid, "updated-to:", 1, 0); |
| 568 | fossil_print("%-13s %d file%s modified.\n", "changes:", |
| 569 | nUpdate, nUpdate>1 ? "s" : ""); |
| 570 | } |
| 571 | |
| 572 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -556,16 +556,18 @@ | |
| 556 | free(zFullPath); |
| 557 | free(zFullNewPath); |
| 558 | } |
| 559 | db_finalize(&q); |
| 560 | db_finalize(&mtimeXfer); |
| 561 | fossil_print("%.79c\n",'-'); |
| 562 | if( nUpdate==0 ){ |
| 563 | show_common_info(tid, "checkout:", 1, 0); |
| 564 | fossil_print("%-13s None. Already up-to-date\n", "changes:"); |
| 565 | }else{ |
| 566 | fossil_print("%-13s %.40s %s\n", "updated-from:", rid_to_uuid(vid), |
| 567 | db_text("", "SELECT datetime(mtime) || ' UTC' FROM event " |
| 568 | " WHERE objid=%d", vid)); |
| 569 | show_common_info(tid, "updated-to:", 1, 0); |
| 570 | fossil_print("%-13s %d file%s modified.\n", "changes:", |
| 571 | nUpdate, nUpdate>1 ? "s" : ""); |
| 572 | } |
| 573 | |
| 574 |