You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Richard Cavell <ri...@mail.com> on 2011/09/27 09:55:54 UTC

svn undo

Hi everyone,

 Is there any chance that svn could include an undo subcommand? Instead of compelling us to do 'reverse merges'.

 Richard

Re: svn undo

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Sep 27, 2011 at 03:55:54AM -0400, Richard Cavell wrote:
> Hi everyone,
> 
>  Is there any chance that svn could include an undo subcommand? Instead of compelling us to do 'reverse merges'.

What would you expect this new command to do?
Would it just run a reverse merge, or would it do more?

Would the syntax for this new command differ significantly from
the existing merge command?

  svn merge -c-42 .

Would you like to type this instead?

  svn undo -c42 .

If the 'undo' command is just a thin wrapper around 'merge' you might as well
provide an 'svnundo' script for users that are uncomfortable with using
'svn merge'.

Note that some IDE integrations already provide an 'undo this revision'
feature which runs a reverse merge. I believe TortoiseSVN has one, too.