Fossil SCM
On commit, check the repository for changes before starting the write transaction, so that a diff can be run during the check-in comment editing. Ticket [014ac374123d9a6ab6894].
Commit
59f685856bb6a1b9d3e581b7198f8e7e3384efb7
Parent
703653489ee450d…
1 file changed
+2
-2
+2
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -681,15 +681,15 @@ | ||
| 681 | 681 | */ |
| 682 | 682 | if( !db_exists("SELECT 1 FROM user WHERE login=%Q", g.zLogin) ){ |
| 683 | 683 | fossil_fatal("no such user: %s", g.zLogin); |
| 684 | 684 | } |
| 685 | 685 | |
| 686 | + rc = unsaved_changes(); | |
| 686 | 687 | db_begin_transaction(); |
| 687 | 688 | db_record_repository_filename(0); |
| 688 | - rc = unsaved_changes(); | |
| 689 | 689 | if( rc==0 && !isAMerge && !forceFlag ){ |
| 690 | - fossil_panic("nothing has changed"); | |
| 690 | + fossil_fatal("nothing has changed"); | |
| 691 | 691 | } |
| 692 | 692 | |
| 693 | 693 | /* If one or more files that were named on the command line have not |
| 694 | 694 | ** been modified, bail out now. |
| 695 | 695 | */ |
| 696 | 696 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -681,15 +681,15 @@ | |
| 681 | */ |
| 682 | if( !db_exists("SELECT 1 FROM user WHERE login=%Q", g.zLogin) ){ |
| 683 | fossil_fatal("no such user: %s", g.zLogin); |
| 684 | } |
| 685 | |
| 686 | db_begin_transaction(); |
| 687 | db_record_repository_filename(0); |
| 688 | rc = unsaved_changes(); |
| 689 | if( rc==0 && !isAMerge && !forceFlag ){ |
| 690 | fossil_panic("nothing has changed"); |
| 691 | } |
| 692 | |
| 693 | /* If one or more files that were named on the command line have not |
| 694 | ** been modified, bail out now. |
| 695 | */ |
| 696 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -681,15 +681,15 @@ | |
| 681 | */ |
| 682 | if( !db_exists("SELECT 1 FROM user WHERE login=%Q", g.zLogin) ){ |
| 683 | fossil_fatal("no such user: %s", g.zLogin); |
| 684 | } |
| 685 | |
| 686 | rc = unsaved_changes(); |
| 687 | db_begin_transaction(); |
| 688 | db_record_repository_filename(0); |
| 689 | if( rc==0 && !isAMerge && !forceFlag ){ |
| 690 | fossil_fatal("nothing has changed"); |
| 691 | } |
| 692 | |
| 693 | /* If one or more files that were named on the command line have not |
| 694 | ** been modified, bail out now. |
| 695 | */ |
| 696 |