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

Re: [PATCH]: clarification of book text for `svn revert'

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-09-02 23:27:06 CEST

Eric Hanchrow wrote:
> Index: ch09.xml
> ===================================================================
> --- ch09.xml (revision 10805)
> +++ ch09.xml (working copy)
> @@ -3052,6 +3052,16 @@
> operations that you may have done (e.g. files scheduled
> for addition or deletion can be
> <quote>unscheduled</quote>).</para>
> +
> + <para>Note that <command>svn revert</command> is
> + <emphasis>not</emphasis> the way to delete files that
> + aren't
> + under revision control&mdash;if you want to delete all
> + such
> + files from a working copy, simply
> +
> + delete (or, better yet, rename with
> + <command>mv</command>)
> + the directory, and then do <command>svn up</command> to
> + restore the pristine version.
> + </para>
> </refsect1>

I don't really like this.

First, I think that, if necessary, we should make the description of what
"svn revert *is* clearer, rather than starting to describe what it is *not*.

Second, that's a horrible way to delete files not under revision control. It
wastes time and bandwidth, and doesn't let you keep local mods whilst doing
so.

Just use a tiny bit of shell script joining "svn st --no-ignore", sed and
rm.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 2 23:28:35 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.