[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 'svn log --diff' foils log output parsers

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 23 Jun 2011 22:22:40 +0300

C. Michael Pilato wrote on Thu, Jun 23, 2011 at 15:15:08 -0400:
> We discussed in IRC some solutions:
> - spool the diff, count the lines in it, and provide that count in
> some fashion
> - indent the diff by a single column
> - wrap the whole diff in some start/end markers ("[[[" and "]]]", e.g.)
> Keep in mind that the diff itself might be provided by a third-party tool
> ('svn log --diff --diff-cmd /usr/bin/shoot myfoot", as danielsh so
> eloquently put it).

I mentioned that in response to a suggestion that ]]] might not be
a reliable end-delimiter for users of --diff-cmd.

I also suggested that whoever does such crazy things could append
     | sed "s/^/ /"
to their diff-cmd to solve the issue.
Received on 2011-06-23 21:23:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.