Fossil SCM

'update' shows the commit date for the updated-from version, for consistency."

danield 2022-02-17 15:04 trunk
Commit 971dd2364df9f4ea2a420917c806dec7572556d15c11d04ce9880ed01eb2c752
1 file changed +4 -2
+4 -2
--- src/update.c
+++ src/update.c
@@ -556,16 +556,18 @@
556556
free(zFullPath);
557557
free(zFullNewPath);
558558
}
559559
db_finalize(&q);
560560
db_finalize(&mtimeXfer);
561
+ fossil_print("%.79c\n",'-');
561562
if( nUpdate==0 ){
562563
show_common_info(tid, "checkout:", 1, 0);
563564
fossil_print("%-13s None. Already up-to-date\n", "changes:");
564565
}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));
567569
show_common_info(tid, "updated-to:", 1, 0);
568570
fossil_print("%-13s %d file%s modified.\n", "changes:",
569571
nUpdate, nUpdate>1 ? "s" : "");
570572
}
571573
572574
--- 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

Keyboard Shortcuts

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