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.

stephan 2022-02-17 02:38 trunk
Commit 07ed3fedfa0a59f1a361f47b46d36d6a7cbd4e800cd345d64c6bda5c310ba471
1 file changed +2 -1
+2 -1
--- src/update.c
+++ src/update.c
@@ -556,15 +556,16 @@
556556
free(zFullPath);
557557
free(zFullNewPath);
558558
}
559559
db_finalize(&q);
560560
db_finalize(&mtimeXfer);
561
- fossil_print("%.79c\n",'-');
562561
if( nUpdate==0 ){
563562
show_common_info(tid, "checkout:", 1, 0);
564563
fossil_print("%-13s None. Already up-to-date\n", "changes:");
565564
}else{
565
+ fossil_print("%.79c\n%-13s %z\n",'-', "updated-from:",
566
+ rid_to_uuid(vid));
566567
show_common_info(tid, "updated-to:", 1, 0);
567568
fossil_print("%-13s %d file%s modified.\n", "changes:",
568569
nUpdate, nUpdate>1 ? "s" : "");
569570
}
570571
571572
--- 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

Keyboard Shortcuts

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