| 
Created on 2008-02-14.02:49:54 by markstos, last changed 2009-08-27.14:09:02 by admin. 
 
  
   | msg3383 (view) | Author: markstos | Date: 2008-02-14.02:49:52 |  |  
   | While working on issue58, I tried out the new "DARCS_PATCHES" export for
--posthook, which is in a plain-text format. That experience clarified for me
that we should also export DARCS_PATCHES_XML, providing the same data in XML
format. 
The reason is --posthook primarily exists for automation, and the XML format is
convenient for being processed by automated tools. By contract, parsing the
human-readable format of DARCS_PATCHES is cumbersome and hackish, requiring
things like matching lines that start with " * " to mean that we've found a
patch name. |  
   | msg3425 (view) | Author: droundy | Date: 2008-02-14.18:55:49 |  |  
   | Implemented. |  
   | msg3436 (view) | Author: markstos | Date: 2008-02-15.03:59:55 |  |  
   | Thanks David. 
This needs a small touch up. A wrapper XML element is missing, leaving a stream
of <patches> tags, which are not as easily parsed. 
I suggest either re-using <changelog> for consistency with "darcs changes", or
just "patches". 
Here's what the code looks like for "darcs changes":
         text "<changelog>"
      $$ vcat xml_file_names
      $$ vcat actual_xml_changes
      $$ text "</changelog>"
I'm not clear the difference between the meaning of "$" and "$$", so I'm not
going to attempt the fix myself right now. 
I've continued to work the updated roundup/darcs integration tonight. |  
   | msg3437 (view) | Author: markstos | Date: 2008-02-15.04:02:43 |  |  
   | Also, from reading the code it looks like these environment variables are not
set on Win32. Do we need to document that this part of --posthook doesn't work
on Win32, then?
  Mark |  
   | msg3443 (view) | Author: droundy | Date: 2008-02-15.15:04:39 |  |  
   | Just because I can't resist a chance to explain Haskell's weird syntax...
The $ operator is a standard Haskell operator that is really just a trick to
avoid extra parens (thus escaping from the lisp syndrome), so
(foo (bar (baz x))) is the same as foo $ bar $ baz x
The $$ operator is in fact unrelated to $ (except that they both are composed
entirely of the character '$'), and is a pretty-printer combinator that is
motivated by the regex '$', which indicates "separate these two things by a
newline.  We like using our pretty-printer because it allows tricks like
displaying in color on a terminal, but not when writing to a file or a pipe.
David
(Who is also sending a patch that will close this bug, hopefully...) |  
   | msg3458 (view) | Author: droundy | Date: 2008-02-15.20:30:30 |  |  
   | Okay, the new roundup hook didn't get this one, due to a weirdness of the exim
configuration on darcs.net.  But it works now. |  |
 
| Date | User | Action | Args |  | 2008-02-14 02:49:54 | markstos | create |  |  | 2008-02-14 03:35:03 | markstos | link | issue58 superseder |  | 2008-02-14 18:55:50 | droundy | set | status: unread -> resolved-in-unstable nosy:
  droundy, tommy, beschmi, kowey, markstos
 messages:
  + msg3425
 |  | 2008-02-15 03:59:56 | markstos | set | status: resolved-in-unstable -> has-patch nosy:
  droundy, tommy, beschmi, kowey, markstos
 messages:
  + msg3436
 assignedto: droundy
 |  | 2008-02-15 04:02:44 | markstos | set | nosy:
  droundy, tommy, beschmi, kowey, markstos messages:
  + msg3437
 |  | 2008-02-15 15:04:40 | droundy | set | nosy:
  droundy, tommy, beschmi, kowey, markstos messages:
  + msg3443
 |  | 2008-02-15 20:30:31 | droundy | set | status: has-patch -> resolved-in-unstable nosy:
  droundy, tommy, beschmi, kowey, markstos
 messages:
  + msg3458
 |  | 2008-09-04 21:32:35 | admin | set | status: resolved-in-unstable -> resolved nosy:
  + dagit
 |  | 2009-08-06 17:54:26 | admin | set | nosy:
  + jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy |  | 2009-08-06 20:58:06 | admin | set | nosy:
  - beschmi |  | 2009-08-10 22:15:14 | admin | set | nosy:
  - darcs-devel, zooko, jast, Serware, mornfall |  | 2009-08-11 00:07:04 | admin | set | nosy:
  - dagit |  | 2009-08-25 18:05:44 | admin | set | nosy:
  + darcs-devel, - simon |  | 2009-08-27 14:09:02 | admin | set | nosy:
  tommy, kowey, markstos, darcs-devel, thorkilnaur, dmitry.kurochkin | 
 |