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

Re: feature request: UNDO

From: Bennett McElwee <bennett.mcelwee_at_solnetsolutions.co.nz>
Date: 2007-11-05 23:54:53 CET

Karl Fogel wrote:
> "Erik Volz" <erik.volz@gmail.com> writes:
>> Subversion would be a lot easier to use if there was a simple UNDO
>> command that reversed whatever your last action was.
> It's hard to know exactly what to undo. For example:
> ...
> It's quite likely that the behavior of 'svn undo'
> would be counterintuitive to a lot of users a lot of the time. Maybe
> we could find a consistent and predictable behavior, but it wouldn't
> be trivial.

svn undo would be quite tricky. But svnadmin undo could be simple:

Name: svnadmin undo — Delete the last revision

Synopsis: svnadmin undo REPOS_PATH -r REVISION

Description: Delete the head revision, as long as its number is
REVISION. If not, then return an error message and do nothing. (That's a
safety check to ensure you don't delete the wrong revision.)

I suppose this would not be too hard to implement; but that may just
reflect my ignorance of the SVN code rather than anything else. Anyway,
I think this functionality would cause more problems that it solves, as
it would give a false sense of security and encourage meddling with
repositories that man was meant to leave alone.

Cheerio,
Bennett.

-- 
Bennett McElwee
Senior Developer
Solnet Solutions Limited
Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster@solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 5 23:55:14 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.