Malcolm Wallace wrote:
> Ian Lynagh <[EMAIL PROTECTED]> wrote:
> 
>>> It would be nice if whatever generates these "patch applied" e-mails
>>> wouldn't replace perfectly fine characters in the e-mail subjects
>>> with the XML entity "equivalents" & gt; & apos; , etc.
>> If someone (you?) wants to track down what's causing it then that
>> would be great; it's sufficiently low-impact that I never get around
>> to it.
> 
> That would be /home/simonmar/bin/commit-messages-split.sh, which does this:
> 
>     patchname=$(${DARCS} changes            \
>             --matches="hash ${patch}"       \
>             --xml-output                    \
>             | grep '<name>'                 \
>             | sed 's|.*<name>\(.*\)</name>.*|\1|')
> 
> Note the flag '--xml-output', but unfortunately it is needed for the
> following 'grep' to work.  Ideally, we need to find a different way of
> identifying the patchname string from the output of darcs.

(it seems thunderbird deleted Ian's response :(( )

How about removing --xml-output and:
     | grep '^  \* ' | head -n 1 | sed 's|  \* ||'
(`head` just in case the detailed text has a line starting with "* ")

Or get the second line (is there a better shell way?) :
     | head -n 2 | tail -n 1 | sed 's|  \* ||'

Isaac

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to