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

Re: reverting to a previous version

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2007-06-07 08:03:09 CEST

On 6/6/07, Mark Farnell <mark.farnell@gmail.com> wrote:
>
> This is exactly what Iwant and of course I *want* to leave a history of
> this reversal. However how would you perform this reverse merge? (i.e.
> what commands?)
>
> Thanks!

Suppose you want to revert everything that happened between revision N and
HEAD (including changes made to N) of file foo.

-> svn co <directory containing foo> (checking out HEAD)
-> svn merge -rHEAD:N-1 foo
    -> hopefully there is no conflict.. if there is, resolve conflict
-> svn ci foo -m "reverting changes from rev N through M for foo"

regards,
-Hari Kodungallur
Received on Thu Jun 7 08:03:30 2007

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