Fossil SCM
Be sure to call vfile_check_signature() so that edits are detected prior to generating diffs on the /ckout page.
Commit
6affaac979cd087016deeabae89a176cafd38ed74be9c84a2d213defe7d38f52
Parent
2578684c5c9dd9e…
1 file changed
+1
+1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -626,10 +626,11 @@ | ||
| 626 | 626 | return; |
| 627 | 627 | } |
| 628 | 628 | diffType = preferred_diff_type(); |
| 629 | 629 | pCfg = construct_diff_flags(diffType, &DCfg); |
| 630 | 630 | vid = db_lget_int("checkout", 0); |
| 631 | + vfile_check_signature(vid, CKSIG_ENOTFILE); | |
| 631 | 632 | style_set_current_feature("vinfo"); |
| 632 | 633 | zHostname = fossil_hostname(); |
| 633 | 634 | zCwd = file_getcwd(0,0); |
| 634 | 635 | if( zHostname ){ |
| 635 | 636 | style_header("Checkout at %s:%s", zHostname, zCwd); |
| 636 | 637 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -626,10 +626,11 @@ | |
| 626 | return; |
| 627 | } |
| 628 | diffType = preferred_diff_type(); |
| 629 | pCfg = construct_diff_flags(diffType, &DCfg); |
| 630 | vid = db_lget_int("checkout", 0); |
| 631 | style_set_current_feature("vinfo"); |
| 632 | zHostname = fossil_hostname(); |
| 633 | zCwd = file_getcwd(0,0); |
| 634 | if( zHostname ){ |
| 635 | style_header("Checkout at %s:%s", zHostname, zCwd); |
| 636 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -626,10 +626,11 @@ | |
| 626 | return; |
| 627 | } |
| 628 | diffType = preferred_diff_type(); |
| 629 | pCfg = construct_diff_flags(diffType, &DCfg); |
| 630 | vid = db_lget_int("checkout", 0); |
| 631 | vfile_check_signature(vid, CKSIG_ENOTFILE); |
| 632 | style_set_current_feature("vinfo"); |
| 633 | zHostname = fossil_hostname(); |
| 634 | zCwd = file_getcwd(0,0); |
| 635 | if( zHostname ){ |
| 636 | style_header("Checkout at %s:%s", zHostname, zCwd); |
| 637 |