[dokuwiki] Re: problem after patching via darcs plugin

  • From: Ben Coburn <btcoburn@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 12 Jul 2006 05:45:10 -0700

This is what darcs does when you pull in a patch that conflicts with one of your local patches. It marks the conflicting variations in the code. The conflict is then manually resolved (by editing the file) and a new patch recorded. You will probably find the darcs manual helpful. See:
more specifically
http://www.abridgegame.org/darcs/manual/ node6.html#SECTION00635000000000000000

On Jul 12, 2006, at 4:02 AM, Werner Flamme wrote:

Hash: SHA1


I just used the darcs plugin to update my installation. Something went
wrong, in inc/template.php I read:

- ---snip---
v v v v v v v

Code from the incoming conflicting patch.


return $html_output;

Code from the conflicting patch in your repository.

^ ^ ^ ^ ^ ^ ^
- ---pins---

and, of course, this is not valid PHP code. The line "return $html_output;"
I added for my PDF export (see
http://wiki.splitbrain.org/users:wflamme:pdfdownload). After adding this
line, I used "darcs record" so darcs should know about this line (and the
other changes I made for "pdfdownload").

Both patches conflict (see darcs manual) because they change the same "trigger_event" line in a preceding patch. The command 'darcs whatsnew' should clearly show the part of the file that needs to be changed (if there are no other unrecorded changes). The whole block can be replaced (without comments):

// start

  return $html_output;
// end

Regards, Ben Coburn

------------------- silicodon.net -------------------

DokuWiki mailing list - more info at

Other related posts: