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

RE: Want to create a patch utility

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-03-03 16:25:12 CET

> From: Girish Balakrishnan [mailto:giribal@gmail.com]

> If we use svn merge it is possible to do that. So I wanted to knwo any
> way of writing a small .exe which can take a diff file and use it to
> do a merge (as svn merge does it)?????

In you are working in Un*x, it would be possible to do such a thing.
Generate a script containing various mv and rm commands to move and delete
files, followed by an invocation of patch to add and change files. Similar
things must be possible in Windows as well.

The real problem is generating it -- as you say, the diff output does not
contain the information in question. You'd have to write an alternative to
the svn client update/merge that instead of executing the update/merge,
generated the script that would perform it.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 3 16:30:37 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.