Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Consistently use periods and end-paragraph tags in append_file_change_line(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b824b3e7f7ec7f26d8299702a656b97c |
| User & Date: | mistachkin 2015-05-17 05:54:14.847 |
References
|
2015-05-17
| ||
| 20:45 | Rework [b824b3e7f7] to ensure the "[diff]" link or the actual inline diff is inside the paragraph block. ... (check-in: 80e7250a4e user: andygoth tags: trunk) | |
|
2015-05-15
| ||
| 18:18 | Add periods for consistency between hyperlink and non- versions. May wish to add (or remove) periods everywhere in the report for additional consistency. Update: improvement was later done in [b824b3e7]. ... (check-in: eb9677a9e3 user: andygoth tags: andygoth-metadata-info) | |
Context
|
2015-05-17
| ||
| 20:45 | Rework [b824b3e7f7] to ensure the "[diff]" link or the actual inline diff is inside the paragraph block. ... (check-in: 80e7250a4e user: andygoth tags: trunk) | |
| 19:42 | Inhibit timeline links to wiki pages that have been deleted. ... (Closed-Leaf check-in: e6dae0228d user: andygoth tags: andygoth-inhibit-deleted-wiki-link) | |
| 17:43 | Create parents of empty-dirs if they don't already exist. ... (check-in: 1ab80be485 user: andygoth tags: andygoth-empty-dirs-parents) | |
| 05:54 | Consistently use periods and end-paragraph tags in append_file_change_line(). ... (check-in: b824b3e7f7 user: mistachkin tags: trunk) | |
| 02:45 | Changelog URL correction. Credit: jungle Boogie. ... (check-in: 6cf8f3648b user: andygoth tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
368 369 370 371 372 373 374 |
const char *zOldName, /* Prior name. NULL if no name change. */
u64 diffFlags, /* Flags for text_diff(). Zero to omit diffs */
ReCompiled *pRe, /* Only show diffs that match this regex, if not NULL */
int mperm /* executable or symlink permission for zNew */
){
if( !g.perm.Hyperlink ){
if( zNew==0 ){
| | | | | | | | | | 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 |
const char *zOldName, /* Prior name. NULL if no name change. */
u64 diffFlags, /* Flags for text_diff(). Zero to omit diffs */
ReCompiled *pRe, /* Only show diffs that match this regex, if not NULL */
int mperm /* executable or symlink permission for zNew */
){
if( !g.perm.Hyperlink ){
if( zNew==0 ){
@ <p>Deleted %h(zName).</p>
}else if( zOld==0 ){
@ <p>Added %h(zName).</p>
}else if( zOldName!=0 && fossil_strcmp(zName,zOldName)!=0 ){
@ <p>Name change from %h(zOldName) to %h(zName).</p>
}else if( fossil_strcmp(zNew, zOld)==0 ){
if( mperm==PERM_EXE ){
@ <p>%h(zName) became executable.</p>
}else if( mperm==PERM_LNK ){
@ <p>%h(zName) became a symlink.</p>
}else{
@ <p>%h(zName) became a regular file.</p>
}
}else{
@ <p>Changes to %h(zName).</p>
}
if( diffFlags ){
append_diff(zOld, zNew, diffFlags, pRe);
}
}else{
if( zOld && zNew ){
if( fossil_strcmp(zOld, zNew)!=0 ){
@ <p>Modified %z(href("%R/finfo?name=%T",zName))%h(zName)</a>
@ from %z(href("%R/artifact/%!S",zOld))[%S(zOld)]</a>
@ to %z(href("%R/artifact/%!S",zNew))[%S(zNew)]</a>.</p>
}else if( zOldName!=0 && fossil_strcmp(zName,zOldName)!=0 ){
@ <p>Name change
@ from %z(href("%R/finfo?name=%T",zOldName))%h(zOldName)</a>
@ to %z(href("%R/finfo?name=%T",zName))%h(zName)</a>.</p>
}else{
@ <p>%z(href("%R/finfo?name=%T",zName))%h(zName)</a> became
if( mperm==PERM_EXE ){
@ executable with contents
}else if( mperm==PERM_LNK ){
@ a symlink with target
}else{
@ a regular file with contents
}
@ %z(href("%R/artifact/%!S",zNew))[%S(zNew)]</a>.</p>
}
}else if( zOld ){
@ <p>Deleted %z(href("%R/finfo?name=%T",zName))%h(zName)</a>
@ version %z(href("%R/artifact/%!S",zOld))[%S(zOld)]</a>.</p>
}else{
@ <p>Added %z(href("%R/finfo?name=%T",zName))%h(zName)</a>
@ version %z(href("%R/artifact/%!S",zNew))[%S(zNew)]</a>.</p>
}
if( diffFlags ){
append_diff(zOld, zNew, diffFlags, pRe);
}else if( zOld && zNew && fossil_strcmp(zOld,zNew)!=0 ){
@
@ %z(href("%R/fdiff?v1=%!S&v2=%!S&sbs=1",zOld,zNew))[diff]</a>
}
|
| ︙ | ︙ |