On Mon, Feb 14, 2011 at 9:15 AM, Paul Maier <svn-u...@web.de> wrote: > Hi, > > a question about how to switch back a WC: > > I checked out a WC, and then switched some subdirectories to some other > directories. I worked with that for a while, checked in, all fine. > Now I want to switch my WC back. > > Can I automatically "un-switch" the WC? > > I mean: I could do a second switch and there I could manually specify the > URL of > the original subdir. That would work, but would mean, that I manually find > out: > - which subdirectory is in a switched state >
>From 'svn help status': Fifth column: Whether the item is switched or a file external ' ' normal 'S' the item has a Switched URL relative to the parent 'X' a versioned file created by an eXternals definition > - what is the URL of the unswitched directory (how??) > SVN does not store this information - you'd need to find this out for yourself. > - manually switch back. > svn switch old_url sub_dir? > Is there a way to issue some command that does that for me automatically? > You can run switch on the parent directory (using the same URL as it currently has), and this will override any switched sub-directories. > Thanks for hints! > > Regards > Paul Cheers, Daniel B.