| 44 | |
| 45 | = Technical Tips = |
| 46 | |
| 47 | Please suggest improvements here if you run into technical snags while reviewing a ticket. |
| 48 | |
| 49 | == Ticket attachment links == |
| 50 | |
| 51 | Attachments in a ticket have two links, a name, which points to an html page with prettification, and a raw download link. You can save the download link (such as by {{{wget}}}) and use {{{darcs apply}}} to configure your repository to test a particular patch. |
| 52 | |
| 53 | For the #1149 ticket, for example, there are two links for the attachment named "test-for-webopen.darcs.patch": |
| 54 | |
| 55 | * The link with a name points here: http://tahoe-lafs.org/trac/tahoe-lafs/attachment/ticket/1149/test-for-webopen.darcs.patch |
| 56 | * The link with a download icon, here: http://tahoe-lafs.org/trac/tahoe-lafs/raw-attachment/ticket/1149/test-for-webopen.darcs.patch |
| 57 | |
| 58 | The latter can be used to apply a patch, like this example shows: |
| 59 | |
| 60 | {{{ |
| 61 | $ wget 'http://tahoe-lafs.org/trac/tahoe-lafs/raw-attachment/ticket/1149/test-for-webopen.darcs.patch' |
| 62 | --2011-07-31 20:23:39-- http://tahoe-lafs.org/trac/tahoe-lafs/raw-attachment/ticket/1149/test-for-webopen.darcs.patch |
| 63 | Connecting to 127.0.0.1:8123... connected. |
| 64 | Proxy request sent, awaiting response... 200 Ok |
| 65 | Length: 18275 (18K) [text/x-diff] |
| 66 | Saving to: “test-for-webopen.darcs.patch” |
| 67 | |
| 68 | 100%[==============================>] 18,275 21.8K/s in 0.8s |
| 69 | |
| 70 | 2011-07-31 20:23:54 (21.8 KB/s) - “test-for-webopen.darcs.patch” saved [18275/18275] |
| 71 | |
| 72 | $ darcs apply test-for-webopen.darcs.patch |
| 73 | Finished applying... |
| 74 | }}} |