Fossil SCM
Continue with the update routine even if the targetted version equals the current checkout version instead of depending on the value of the verbose flag to continue or not. This fixes tkt [e8a10100e2]. Fossil update will now recover lost files with or without the -v flag.
Commit
c6b371c46ca0e53e2eff84ffdaee384e7f8216cc
Parent
ce62a2b11d4e882…
1 file changed
-1
-1
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -185,11 +185,10 @@ | ||
| 185 | 185 | |
| 186 | 186 | if( tid==0 ){ |
| 187 | 187 | fossil_panic("Internal Error: unable to find a version to update to."); |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - if( tid==vid && !verboseFlag ) return; /* Nothing to update */ | |
| 191 | 190 | db_begin_transaction(); |
| 192 | 191 | vfile_check_signature(vid, 1, 0); |
| 193 | 192 | if( !nochangeFlag && !internalUpdate ) undo_begin(); |
| 194 | 193 | load_vfile_from_rid(tid); |
| 195 | 194 | |
| 196 | 195 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -185,11 +185,10 @@ | |
| 185 | |
| 186 | if( tid==0 ){ |
| 187 | fossil_panic("Internal Error: unable to find a version to update to."); |
| 188 | } |
| 189 | |
| 190 | if( tid==vid && !verboseFlag ) return; /* Nothing to update */ |
| 191 | db_begin_transaction(); |
| 192 | vfile_check_signature(vid, 1, 0); |
| 193 | if( !nochangeFlag && !internalUpdate ) undo_begin(); |
| 194 | load_vfile_from_rid(tid); |
| 195 | |
| 196 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -185,11 +185,10 @@ | |
| 185 | |
| 186 | if( tid==0 ){ |
| 187 | fossil_panic("Internal Error: unable to find a version to update to."); |
| 188 | } |
| 189 | |
| 190 | db_begin_transaction(); |
| 191 | vfile_check_signature(vid, 1, 0); |
| 192 | if( !nochangeFlag && !internalUpdate ) undo_begin(); |
| 193 | load_vfile_from_rid(tid); |
| 194 | |
| 195 |