Questions tagged [svn-switch]

SVN 'switch' operation to change a working copy association.

SVN switch operation allows to make a working copy track a different URL in the same repository. Is mostly used to select a different branch to follow.

Not to be confused with relocate which changes to point to a whole different repository.

It can also be applied to just a directory in a working copy (but this is not recommended).

14 questions
61
votes
5 answers

What is a working copy and what does "switching" do for me in Tortoise SVN?

I have a software app and I've hit an important milestone, version 2.0. I decided I want to tag this version as "Version-2.0" so I have named this snapshot. I also created a "Version-2.0" branch in case I need to fix anything and merge it back into…
KingNestor
  • 59,315
  • 50
  • 115
  • 149
25
votes
3 answers

Tortoise SVN Switch Branch Command Error - "Shares No Common Ancestry"

When I try to do "switch" to change a directory to a different branch I get a strange error message. This is how repository is set up looking at it from the host's website. I used to have a branch called bugfix-lobby-quirks, but it was deleted…
Mc' Flips
  • 873
  • 2
  • 8
  • 9
22
votes
4 answers

SVN Switch with relocate in Eclipse

My question can be claimed to be an extension/similar to the question posted here. basically, I need to do the same functionality using Eclipse plugin Subclipse. Subclipse has a functionality to "Switch branch/tag/revision", however, this is limited…
M. Faraz
  • 402
  • 1
  • 6
  • 13
15
votes
3 answers

Does 'svn switch' ever delete locally-added files?

I need some clarification about the behaviour of "svn switch". I'm using SVN version 1.6.5. From reading the manual, my understanding of the behaviour is that local changes will be preserved. So I would expect a locally-added file to still exist in…
Phil Harvey
  • 1,140
  • 2
  • 12
  • 18
12
votes
1 answer

SubVersion switch to depth

When switching from for example trunk to a branch, I get 5 different depth options. Only a folder Files in a folder Direct children Recursively Working copy What's the difference between these? The first two should be fairly obvious, but not sure…
Svish
  • 138,188
  • 158
  • 423
  • 589
5
votes
1 answer

SVN relocate issue with uuid

I have a question about svn switch --relocate. I have an old repository called beta and we are moving to a new SVN server. There I created a new repo called legacy and committed all the files from the beta repository. Now I need to update all the…
user169573
  • 51
  • 1
  • 3
1
vote
2 answers

Database Versioning - How does branch switching work?

This is a question for those of you developing on a team of devs where all of you have separate databases. You're versioning your database using source control and other tools which will automatically bring dev databases up to date to the latest…
Brandon Montgomery
  • 6,626
  • 3
  • 42
  • 70
1
vote
3 answers

how to switching working copy in jenkins?

i am using jenkins for build process. i have created one job with svn url test.svn.com/branch/branch4 now i want to switch this working copy to test.svn.com/branch/branch5. how it is possible in jenkins. when i gave new URL in jenkins, jenkins clean…
niket patel
  • 93
  • 1
  • 9
1
vote
2 answers

How to list switched svn directories recursively in a working copy?

I have checked out a working copy from a repository and switched some directories to a different URL but on the same repo (same host and svn server). How could I list these switched directories? We use many switching for internal purposes and it…
n611x007
  • 7,979
  • 7
  • 53
  • 91
1
vote
2 answers

TortoiseSVN switching, branching and working on branching

I am asking here which may be some basic stuff, but still want to go on with my post in pursue of learning. I got into SVN recently and some questions are bugging my mind. I have got a repository which has a /trunk where all the current development…
125369
  • 3,257
  • 19
  • 48
  • 69
0
votes
0 answers

SVN how to change branch keeping working copy untoucthed?

I have a branch with many changes. I've merged trunk to it, and now have working copy state equivalent to hypothetical state of trunk-with-my-branch-merged-to-it. To avoid pain with namely merging branch to trunk, I want to just say: "Hey, SVN, lets…
user1234567
  • 2,779
  • 2
  • 16
  • 20
0
votes
1 answer

Wrong results switching branches in XCode 4 with Subversion

I have a project in XCode 4 using subversion over ssh. It's configured with the branches, tags and trunk subdirectories and my project (let's say ProjectOne) is its own directory in trunk like so: -|-trunk | \- ProjectOne |-tags \-branches I…
Diziet
  • 2,367
  • 1
  • 25
  • 33
0
votes
1 answer

svn checkin from tag to trunk

We intend to maintain our SVN database as a single trunk, with no branches on a day-to-day basis. We will, however, tag stable 'releases' from time to time. These tags are really intended to be tags, meaning no one checks anything in to tags. Now,…
MicRavi
  • 1
  • 2
0
votes
1 answer

SVN relocate repository for working copy

Here is svn info of the working copy. URL: svn://192.168.1.10/svn/MyRepos Repository Root: svn://192.168.1.10 And this is what I expect URL: svn://192.168.1.10/MyRepos Repository Root: svn://192.168.1.10/MyRepos What should I do with it? Thanks…
world000
  • 1,237
  • 1
  • 8
  • 11