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

Re: Problem with reverting

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 2 Feb 2012 10:43:27 +0100

On Thu, Feb 02, 2012 at 08:24:47AM +0000, Markus Schaber wrote:
> I did create issue http://subversion.tigris.org/issues/show_bug.cgi?id=4109 for this case.

Thanks!
 
> My personal wish would be that operations like revert and commit work
> for all constellations even with "--depth=empty" if we explicitly
> mention all affected files and directories,

That can be done. It requires reworking how the 'revert' operation
in libsvn_wc processes its arguments. We'd need to pass it a list,
rather than a single path and adapt the code to handle this properly.
This implies an API change so it can only be done for 1.8.

> and that "--depth=files" recreates the files when reverting a directory

You mean reverting individual files independently of their parent
directory? Not sure if this does or would work. In theory is could work.
The files would need to come from a different revision than the directory
on-disk, i.e. this would need to create a mixed-revision working copy.
I don't recall off-hand how mixed-revisionness is supposed to work in
newly added directories, though.
Received on 2012-02-02 10:44:19 CET

This is an archived mail posted to the Subversion Users mailing list.