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

Re: Out of date errors just after a revert

From: Ray Miller <ray_at_sysdev.oucs.ox.ac.uk>
Date: 2004-09-10 12:55:04 CEST

On Fri, Sep 10, 2004 at 12:21:00PM +0200, L?bbe Onken wrote:
> Marc Haisenko wrote:
>
> >
> >You should have done "svn revert foo" instead of "svn revert ."
> >
> Thanks for your hint. That does the job, but only if I remove foo/bar
> from my WC before. If I just do the following I get an working copy not
> locked:
> ---SNIP---
> D:\TESTPR~1\xxx>svn add foo
> A foo
> A foo\bar
>
> D:\TESTPR~1\xxx>svn revert foo
> svn: Working copy 'foo/bar' not locked
>
> D:\TESTPR~1\xxx>svn st
> A foo
> A foo\bar
> ---SNIP---
>
> Now is that logical?

Yes. Unlike most of the subversion commands, 'svn revert' is not
recursive. 'svn revert -R foo' should do what you want. (If bar had
been a file rather than a directory, 'svn revert foo' would have been
sufficient.)

-- 
Ray Miller, Unix Systems Programmer & Team Leader
Systems Development & Support, Computing Services, University of Oxford

  • application/pgp-signature attachment: stored
Received on Fri Sep 10 12:55:21 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.