plaven@bigpond.net.au via RT wrote on 8/15/09 11:31 PM:
Show quoted text> Sun Aug 16 00:31:29 2009: Request 48748 was acted upon.
> Transaction: Ticket created by plaven@bigpond.net.au
> Queue: SVN-Class
> Subject: Multiple Line commit messages
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: plaven@bigpond.net.au
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=48748 >
>
>
> Hi,
>
> I'm using your module in a project I'm working with and have hit the
> limit with it when it comes to getting multiple line commit messages to
> work.
>
> The "trick" to this is to save off the text to a text file and specify
> the file name using either -F or --file option.
>
> Looking at the code for the commit method, I can't see a way to get this
> to work in it's current implementation, apart from some change to the
> way the $message is checked, ie maybe allow $message to be undef with a
> requirement that one of the options is either -F or --file in the
> options array and having a path to a file.
>
Hi Peter,
Can you just call svn_run() directly, instead of commit()? I understand the
limitation you're describing, and you're correct that it would take some
significant refactoring to make it work with the existing implementation, which
is intended to cover the "most common case" and not much more.
OTOH, perhaps you'd consider writing a patch to implement a
commit_with_message() method that takes a filehandle or string as an argument
and handles the --file option you're wanting?
pek
--
Peter Karman .
http://peknet.com/ . peter@peknet.com
gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F E556 374A 34D9