Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4303 closed defect (worksforme)

view attachment of a patch omit the second file

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.2
Severity: normal Keywords: diff
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In http://trac.gnugo.org/gnugo/ticket/149 there is simple patch, impacting 2 files.

when clicking on the patch to view it (http://trac.gnugo.org/gnugo/attachment/ticket/149/patterns2-endgame.diff) we see only the diff for the first impacted file, but not the second :(

Attachments (0)

Change History (4)

comment:1 by sid, 17 years ago

Keywords: diff added

Interesting.. it looks like the #!diff WikiProcessor is stripping part of the content. Here is the patch (I truncated a few parts to just display the relevant bug) in a normal block:

--- /Big/GO/TGZ/gnugo-3.7.10-ref/./patterns/endgame.db	2006-01-27 16:49:24.000000000 +0100
+++ ./patterns/endgame.db	2006-11-30 13:27:13.000000000 +0100
@@ -1632,22 +1640,22 @@
 #
 ######################################################################
 
-
-Pattern CF3
+#al1 remove pattern
+#Pattern CF3
 # tm New Pattern (3.1.23) (see arend:36)
 # FIXME: Perhaps better in patterns.db?
 # gf This pattern is redundant because the followup has already been
 #    found by find_worm_threats(). (This was broken in 3.1.23 and 3.1.24.)
 
-O*.O  threaten to save
+#O*.O  threaten to save
 
-:-,-
+#:-,-
 
-b*ca
+#b*ca
 
-; dead(a) && !dead(b) && oplay_disconnect(*,*,a) && !oplay_attack(*,?,c,a)
+#; dead(a) && !dead(b) && oplay_disconnect(*,*,a) && !oplay_attack(*,?,c,a)
 
-> threaten_to_save(a)
+#> threaten_to_save(a)
 
 
 ######################################################################
--- /Big/GO/TGZ/gnugo-3.7.10-ref/./patterns/patterns2.db	2006-05-21 19:04:27.000000000 +0200
+++ ./patterns/patterns2.db	2006-11-30 13:25:26.000000000 +0100
@@ -2987,8 +2987,9 @@
 ;oplay_attack(*,A)
 
 
-Pattern Sente13
+Pattern RevSente13
 # gf Revised constraint. (3.1.20)
+# al1 revised symetry, (3.7.11)
 
 *O
 

and then the same section with #!diff prepended.

  • ./patterns/endgame.db

    old new  
    16321640#
    16331641######################################################################
    16341642
    1635 
    1636 Pattern CF3
     1643#al1 remove pattern
     1644#Pattern CF3
    16371645# tm New Pattern (3.1.23) (see arend:36)
    16381646# FIXME: Perhaps better in patterns.db?
    16391647# gf This pattern is redundant because the followup has already been
    16401648#    found by find_worm_threats(). (This was broken in 3.1.23 and 3.1.24.)
    16411649
    1642 O*.O  threaten to save
     1650#O*.O  threaten to save
    16431651
    1644 :-,-
     1652#:-,-
    16451653
    1646 b*ca
     1654#b*ca
    16471655
    1648 ; dead(a) && !dead(b) && oplay_disconnect(*,*,a) && !oplay_attack(*,?,c,a)
     1656#; dead(a) && !dead(b) && oplay_disconnect(*,*,a) && !oplay_attack(*,?,c,a)
    16491657
    1650 > threaten_to_save(a)
     1658#> threaten_to_save(a)
    16511659
    16521660
    16531661######################################################################
  • ./patterns/patterns2.db

    old new  
    29872987;oplay_attack(*,A)
    29882988
    29892989
    2990 Pattern Sente13
     2990Pattern RevSente13
    29912991# gf Revised constraint. (3.1.20)
     2992# al1 revised symetry, (3.7.11)
    29922993
    29932994*O
    29942995

comment:2 by Christian Boos, 17 years ago

Works fine on trunk.

Not sure it's worth backporting on 0.10.x, as the code has started to diverge (and probably will still evolve even more…)

Proposing a worksforme here.

comment:3 by anonymous, 17 years ago

Hi again. The patch on GNU Go trac have been changed and now display is correct http://trac.gnugo.org/gnugo/attachment/ticket/149/patterns2-endgame.diff

The new patch has been made with "cvs diff" instead of "diff" against a tarball, so now the patch has "index" references and is correctly displayed. (/alain)

comment:4 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

Ok, then I'm closing it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.