Differences From Artifact [676d19419e]:
- File src/update.c — part of check-in [371dd6574c] at 2007-12-04 01:26:21 on branch trunk — Fix the revert command so that it works from subdirectories. Other minor comment and help-text changes. (user: drh size: 10217) [more...]
To Artifact [de06d69ffd]:
- File src/update.c — part of check-in [22cc813f8e] at 2008-02-02 18:44:49 on branch trunk — fixed a minor memleak in update.c:revert_cmd() (user: stephan size: 10237)
| ︙ | |||
312 313 314 315 316 317 318 319 320 321 322 323 324 325 | 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | + |
if( access(zFile, 0) ) yesRevert = 1;
if( yesRevert==0 ){
char *prompt = mprintf("revert file %B? this will"
" destroy local changes [y/N]? ",
&fname);
blob_zero(&ans);
prompt_user(prompt, &ans);
free( prompt );
if( blob_str(&ans)[0]=='y' ){
yesRevert = 1;
}
}
if( yesRevert==1 && zRevision!=0 ){
historical_version_of_file(zRevision, zFile, &record);
|
| ︙ |