On Thu, 2003-12-18 at 11:02, C. Michael Pilato wrote:
> "Wadsworth, Eric (Contractor)" <wadswore@fhu.disa.mil> writes:
>
> > I do "svn up" and one of my files gets merged with what is in the
> > repository. Six seconds later, I decide that I need my original wc file
> > back, as it was before the merge.
> >
> > Is there a way to do this? Some way to configure subversion to make backups
> > of my wc files before altering them?
>
> Just reverse the merge.
>
> If you did 'svn merge -r X:Y some_URL my_working_copy_path', then do
> 'svn merge -r Y:X some_URL my_working_copy_path'.
He ran 'svn up', not 'svn merge'.
If your file had local mods before the update, it should still have the
same local mods after the update (assuming there was no conflict.) Just
backdate the file to its previous version ('svn up -rPREV foo.c'). Your
local mods will still be preserved.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 18 18:13:12 2003