Changes between Version 13 and Version 14 of Patches


Ignore:
Timestamp:
2010-05-19T04:14:33Z (15 years ago)
Author:
zooko
Comment:

yay we have in-line viewing with rudimentary syntax highlighting for *.dpatch

Legend:

Unmodified
Added
Removed
Modified
  • Patches

    v13 v14  
    77{{{
    88  darcs record
    9   darcs send -o WHAT.darcspatch.txt
     9  darcs send -o WHAT.dpatch
    1010}}}
    1111
    1212And attach it to the ticket.
    1313
    14 Please use a filename like *.txt (instead of *.patch or *.diff) so that Trac will let other
    15 developers view it without first requiring them to download it first. (Trac's content-type logic maps
    16 *.patch and *.diff to some application/blahblah MIME type, which it refuses to display as HTML)
     14Please use a filename like *.dpatch (instead of *.patch or *.diff) so that Trac will display it
     15with syntax highlighting instead of requiring people to download it to see it.
    1716
    18 If you don't have darcs or don't want to use it, just attach a normal old diff.
    19 
    20 == discussion ==
    21 
    22 If you have an actual diff (as opposed to a darcs patch created with 'darcs send'), then .diff is
    23 good, because Trac knows how to render them. At least it does on the attachements I looked at
    24 on #684 . I haven't checked to see what a darcs patch file attached with a .diff filename looks like,
    25 I think it could get pretty ugly.
    26 On the other hand, downloading the diff with "Download Original Format" gets a content-type which firefox
    27 insists upon saving instead of displaying. I think I'm ok with that.. what I care about is being able to
    28 review the change easily, and Trac's diff markup is pretty good.
    29 -warner
     17If you don't have darcs just attach a normal old unified diff.