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

Re: svn ci/up --xml-file

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-09-15 00:08:55 CEST

On Fri, Sep 14, 2001 at 03:16:36PM -0400, Kevin Pilch-Bisson wrote:
> For generating patch files, we could use 'svn ci --xml-file patch.xml'. This
> would generate an xml output file as normal, except that it would use:
> 1) gnu diff for textdeltas (if text, svndiff if binary).
> 2) textdeltas would be inline instead of post-fix (for easier reading).

Makes sense.

> I think the easiest way to do this would be to add an 'apply_patch' file to
> our editor vtables, and a 'type="gnu/svn"' attribute to the text-delta
> tag.

We should be able to do this with the reworked apply_txdelta function. See
Change #6 in STACK.

> svn up could then read one of these files, and patch the wc accordingly. The
> required change would be to all a revision of SVN_INVALID_REVNUM, indicating
> that update should not modify and revision numbers.


> In addition, a straight patch -p0 < patch.xml should work as well (obviously,
> only changing text files not props or binary files).

Hrm. This would be tough. We should be able to generate a patch file, but
I'm not sure that we could make the .xml files compatible. There would
probably be too much text for patch to "skip".

> What do people think of this idea?

With Change #6 and a few more output format choices, then it should be
doable. And a Good Thing.


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:41 2006

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.