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

request for svnpatch

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 15 Aug 2008 19:06:40 +0200

Hi,

I've checked out the svnpatch-diff branch some time ago to find out what
new API's are available. I've mentioned this before, I'd like to have
additional API's available:

currently, the only API available is svn_client_patch().
I would need APIs to:
* list all affected files/folders in a patchfile:
 - affected file path
 - maybe size of the patch part for that file
 - whether content or properties are affected
 - new name/path in case of a rename
* ability to apply part of the patchfile, affecting only one of the
possible paths

without these APIs, it won't be possible to get a preview before
actually applying the patch.

the svn client could also use these:

svn list --svnpatch patchfile
file1 : modified
file3 : renamed to file3_new
file2 : moved to file4
file4 : added

or something like that. And then if the user doesn't want to apply the
full patchfile but only parts of it:

svn apply --svnpatch patchfile file1
would only apply the modifications for file1.

Does this make sense?

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-08-15 19:07:01 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.