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

[PATCH] Fix reverting a replacement without properties.

From: Ben Reser <ben_at_reser.org>
Date: 2004-03-02 11:36:26 CET

On Tue, Mar 02, 2004 at 08:30:16AM +0100, makl wrote:
> $ svn revert file
> svn: Error 'restoring props' for 'file'
> svn: Can't copy '.svn/prop-base/file.svn-base' to
> '.svn/props/file.svn-work.tmp': Das System kann die angegebene Datei
> nicht finden.
>
>
> If 'file' has a property the revert work.

[[[
Handle reverting a replaced file without any properties.

Patch from Ben Reser <ben@reser.org>

* subversion/libsvn_wc/adm_ops.c
  (revert_admin_things): Actually check the results of svn_io_check_path()
    before trying to copy base-props to props when reverting a replacement.
]]]

Someone should probably write a test for this. But I don't really
understand how to write the test for this. If someone wants to walk me
through it I'll update the patch to have a test.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Tue Mar 2 11:35:39 2004

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.