Fossil SCM
Use new alternative <tt>/zip</tt> URL syntax for the <tt>Zip archive</tt> link at the <tt>/vinfo</tt> page. Where the old filename of the ZIP archive was <verbatim> 417dd898ab0640f2472ebd248ac80e80f0ec6972.zip </verbatim> the new name would be: <verbatim> fossil-417dd898ab.zip </verbatim> The archive's content is placed into a directory named after the Zip archive file's basename.
Commit
3c9e5699ceb881c939c0fc7fa8cddff1329b4ab5
Parent
417dd898ab0640f…
1 file changed
+3
-1
+3
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -354,25 +354,27 @@ | ||
| 354 | 354 | }else{ |
| 355 | 355 | @ <tr><th>Comment:</th><td>%w(zComment)</td></tr> |
| 356 | 356 | } |
| 357 | 357 | @ </td></tr> |
| 358 | 358 | if( g.okHistory ){ |
| 359 | + char *zShortUuid = mprintf("%.10s", zUuid); | |
| 359 | 360 | @ <tr><th>Timelines:</th><td> |
| 360 | 361 | @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">ancestors</a> |
| 361 | 362 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)">descendants</a> |
| 362 | 363 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)&p=%d(rid)">both</a> |
| 363 | 364 | @ </td></tr> |
| 364 | 365 | @ <tr><th>Commands:</th> |
| 365 | 366 | @ <td> |
| 366 | 367 | @ <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a> |
| 367 | - @ | <a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a> | |
| 368 | + @ | <a href="%s(g.zBaseURL)/zip/fossil-%s(zShortUuid).zip?rid=%s(zUuid)">ZIP archive</a> | |
| 368 | 369 | @ | <a href="%s(g.zBaseURL)/artifact/%d(rid)">manifest</a> |
| 369 | 370 | if( g.okWrite ){ |
| 370 | 371 | @ | <a href="%s(g.zBaseURL)/vedit?r=%d(rid)">edit</a> |
| 371 | 372 | } |
| 372 | 373 | @ </td> |
| 373 | 374 | @ </tr> |
| 375 | + free(zShortUuid); | |
| 374 | 376 | } |
| 375 | 377 | @ </table></p> |
| 376 | 378 | }else{ |
| 377 | 379 | style_header("Baseline Information"); |
| 378 | 380 | login_anonymous_available(); |
| 379 | 381 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -354,25 +354,27 @@ | |
| 354 | }else{ |
| 355 | @ <tr><th>Comment:</th><td>%w(zComment)</td></tr> |
| 356 | } |
| 357 | @ </td></tr> |
| 358 | if( g.okHistory ){ |
| 359 | @ <tr><th>Timelines:</th><td> |
| 360 | @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">ancestors</a> |
| 361 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)">descendants</a> |
| 362 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)&p=%d(rid)">both</a> |
| 363 | @ </td></tr> |
| 364 | @ <tr><th>Commands:</th> |
| 365 | @ <td> |
| 366 | @ <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a> |
| 367 | @ | <a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a> |
| 368 | @ | <a href="%s(g.zBaseURL)/artifact/%d(rid)">manifest</a> |
| 369 | if( g.okWrite ){ |
| 370 | @ | <a href="%s(g.zBaseURL)/vedit?r=%d(rid)">edit</a> |
| 371 | } |
| 372 | @ </td> |
| 373 | @ </tr> |
| 374 | } |
| 375 | @ </table></p> |
| 376 | }else{ |
| 377 | style_header("Baseline Information"); |
| 378 | login_anonymous_available(); |
| 379 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -354,25 +354,27 @@ | |
| 354 | }else{ |
| 355 | @ <tr><th>Comment:</th><td>%w(zComment)</td></tr> |
| 356 | } |
| 357 | @ </td></tr> |
| 358 | if( g.okHistory ){ |
| 359 | char *zShortUuid = mprintf("%.10s", zUuid); |
| 360 | @ <tr><th>Timelines:</th><td> |
| 361 | @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">ancestors</a> |
| 362 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)">descendants</a> |
| 363 | @ | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)&p=%d(rid)">both</a> |
| 364 | @ </td></tr> |
| 365 | @ <tr><th>Commands:</th> |
| 366 | @ <td> |
| 367 | @ <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a> |
| 368 | @ | <a href="%s(g.zBaseURL)/zip/fossil-%s(zShortUuid).zip?rid=%s(zUuid)">ZIP archive</a> |
| 369 | @ | <a href="%s(g.zBaseURL)/artifact/%d(rid)">manifest</a> |
| 370 | if( g.okWrite ){ |
| 371 | @ | <a href="%s(g.zBaseURL)/vedit?r=%d(rid)">edit</a> |
| 372 | } |
| 373 | @ </td> |
| 374 | @ </tr> |
| 375 | free(zShortUuid); |
| 376 | } |
| 377 | @ </table></p> |
| 378 | }else{ |
| 379 | style_header("Baseline Information"); |
| 380 | login_anonymous_available(); |
| 381 |