Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 75461b993e85b8000a4198bca39270835fc679bd |
|---|---|
| Date: | 2012-07-03 21:10:59 |
| User: | stephan |
| Comment: | Minor optimization in stash_create to bypass an unneeded blob_compare() when (isLink!=isNewLink). |
Tags And Properties
- branch=trunk inherited from [bf1c21ba16]
- sym-trunk inherited from [bf1c21ba16]
Changes
Changes to src/stash.c
214 if( isNewLink ){ 214 if( isNewLink ){ 215 blob_read_link(&disk, zOPath); 215 blob_read_link(&disk, zOPath); 216 }else{ 216 }else{ 217 blob_read_from_file(&disk, zOPath); 217 blob_read_from_file(&disk, zOPath); 218 } 218 } 219 content_get(rid, &a); 219 content_get(rid, &a); 220 blob_delta_apply(&a, &delta, &b); 220 blob_delta_apply(&a, &delta, &b); 221 if( blob_compare(&disk, &a)==0 && isLink == isNewLink ){ | 221 if( isLink == isNewLink && blob_compare(&disk, &a)==0 ){ 222 if( isLink || isNewLink ){ 222 if( isLink || isNewLink ){ 223 file_delete(zNPath); 223 file_delete(zNPath); 224 } 224 } 225 if( isLink ){ 225 if( isLink ){ 226 symlink_create(blob_str(&b), zNPath); 226 symlink_create(blob_str(&b), zNPath); 227 }else{ 227 }else{ 228 blob_write_to_file(&b, zNPath); 228 blob_write_to_file(&b, zNPath);