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

Reading and applying a diff file with Perl bindings

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-10-17 12:45:21 CEST

Hi there,

I am not really sure if this is the right place for my question so please let me know if not.

I have a file that was produced by 'svn diff' which I want to apply to a file in my repository by using subversion's perl bindings. I am using SVN::Simple::Edit as with this it is very easy to change files in the repository with only few lines of code. Unfortunately SVN::Simple::Edit only provides a function which gets the complete new content of a file (modify_file()) but not only the differences.

Is there an easy way to do what I want?

I think it should be able by using SVN::TxDelta::send_txstream() instead of SVN::TxDelta::send_stream() which is used by modify_file() but the only way I found to create a txstream is by calling SVN::TxDelta::new() which needs source and target again.

Thanks for your help!

Mathias

P.S.: modify_file ($path, $content) is missing in the METHODS section of Edit.pm.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 17 13:14:43 2005

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.