Fossil SCM
'update' now lists the updated-from version, per off-list user request, the intent being to simplify access to the version for purposes of running a diff after seeing updates arrive.
Commit
07ed3fedfa0a59f1a361f47b46d36d6a7cbd4e800cd345d64c6bda5c310ba471
Parent
ced285081370204…
1 file changed
+2
-1
+2
-1
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -556,15 +556,16 @@ | ||
| 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",'-'); | |
| 562 | 561 | if( nUpdate==0 ){ |
| 563 | 562 | show_common_info(tid, "checkout:", 1, 0); |
| 564 | 563 | fossil_print("%-13s None. Already up-to-date\n", "changes:"); |
| 565 | 564 | }else{ |
| 565 | + fossil_print("%.79c\n%-13s %z\n",'-', "updated-from:", | |
| 566 | + rid_to_uuid(vid)); | |
| 566 | 567 | show_common_info(tid, "updated-to:", 1, 0); |
| 567 | 568 | fossil_print("%-13s %d file%s modified.\n", "changes:", |
| 568 | 569 | nUpdate, nUpdate>1 ? "s" : ""); |
| 569 | 570 | } |
| 570 | 571 | |
| 571 | 572 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -556,15 +556,16 @@ | |
| 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 | show_common_info(tid, "updated-to:", 1, 0); |
| 567 | fossil_print("%-13s %d file%s modified.\n", "changes:", |
| 568 | nUpdate, nUpdate>1 ? "s" : ""); |
| 569 | } |
| 570 | |
| 571 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -556,15 +556,16 @@ | |
| 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 |