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

Re: replacing all code with latest SVN regardless of conflicts or uncommitted changes or whatever

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Thu, 10 Jun 2010 11:18:07 -0500

Thomas Anderson wrote:
> Say I've added a bunch of debug code to files in a particular
> directory and that I want to now remove all the debug code. I could
> search through the file and manually remove it all or I could just re
> checkout the directory from SVN and replace the debug directory with
> the latest SVN code. Problem is, typing in "svn checkout" requires
> you know the URL of the repository / directory you're checking out.
>
> If you could do something like "svn refresh" and have it just look at
> the .svn/entries file to get the URL that'd be a lot easier. I mean,
> ease of use is why "svn update" exists. You could just recheck out a
> repository every time you wanted to update your code to the latest
> version and manually do diffs comparing the newly checked out against
> your own and merging where conflicts exist as appropriate but "svn
> update" makes it a lot easier. Similarly, although technically maybe
> unnecessary, I think an "svn refresh" command would be nice.

How about 'revert' followed by an 'update'?

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-06-10 18:18:50 CEST

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.