Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 06:44:51 +0200
From:      Michael Schuster <michaelsprivate@gmail.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        questions <questions@freebsd.org>
Subject:   Re: using subversion
Message-ID:  <CADqw_gJjEkqXswVj84QjJYjohDddKQu=jXbRpTJpmnUoqjRXwQ@mail.gmail.com>
In-Reply-To: <24242.477.924364.935928@jerusalem.litteratus.org>
References:  <24241.62739.445872.301644@jerusalem.litteratus.org> <CADqw_gJ2PRiQSJ2xytg-A1sPe51Nu1fyrrUA_HZEJWDh%2BDp_Cw@mail.gmail.com> <24242.477.924364.935928@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Robert,

svn doesn't care why you want to revert (in my experience, anyway).
For completeness' sake, let me add that you should not do "svn rm", just
"svn revert - - depth=infinity FOO/BAR"
should do the trick.

HTH
Michael


On Wed, May 6, 2020, 02:16 Robert Huff <roberthuff@rcn.com> wrote:

>
> Michael Schuster writes:
>
> >   >              Scenario:
> >   >              I have a directory, FOO, which is the root for an svn
> tree.
> >   >              Under FOO is (directory) BAR.
> >   >              I want to delete - as in completely remove from both
> disk and the
> >   >      svn records - BAR (and subordinate content).
> >   >              Then I want to get a pristine copy of BAR (and
> subordinate
> >   >      content) from the repository.
> >   >              Is this the correct process:
> >   >
> >   >      root> cd FOO
> >   >      root> svn rm BAR
> >   >      root> svn co BAR
> >   >
> >   >              ?  (And if not: what is?)
> >
> >   >  I think "svn revert" is what you are looking for...
>
>         Additional information:
>         There have been no deliberate changes in BAR; the contents of
> the (sub-)tree seem to have been corrupted and I want to wipe things
> out and start over from the same point as FOO.
>         Does that change the answer?
>
>
>                         Respectfully,
>
>
>                                 Robert Huff
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gJjEkqXswVj84QjJYjohDddKQu=jXbRpTJpmnUoqjRXwQ>