project-navigation
Personal tools

Author Topic: What is the proper way to use 'svn switch'?  (Read 4997 times)

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
What is the proper way to use 'svn switch'?
« on: June 30, 2009, 07:20:13 am »
I had a checkout of the 2.2.1 tag. I tried to switch to the trunk, about a month later.

Code: [Select]
Kleiman-ibook:trunk michael$ svn info
Path: .
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/tags/ufoai_2.2.1
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 24887
Node Kind: directory
Schedule: normal
Last Changed Author: tlh2000
Last Changed Rev: 16579
Last Changed Date: 2008-04-28 22:26:37 -0700 (Mon, 28 Apr 2008)

Kleiman-ibook:trunk michael$ svn switch -r {2008-05-30} https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
D    .gamedir
G    configure
U    Makefile.in
...

So first, is this the right syntax and behavior? I thought it was.

But it resulted in (at the end)
Code: [Select]
U    base/pics/wait.tga
D    base/maps/rivertown01d.map
svn: Won't delete locally modified directory 'base/maps'
svn: Left locally modified or unversioned files
Kleiman-ibook:trunk michael$

Not much more later, I got errors like:
Code: [Select]
svn: Directory 'base/maps/frozenn/.svn' containing working copy admin area is missing
I don't want to have to wipe and re-download all the time that I'm moving around. What's the key that I'm missing here?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: What is the proper way to use 'svn switch'?
« Reply #1 on: June 30, 2009, 07:54:39 am »
if you will switch often, you should check out both in a seperate directory. there were so many changes that switching from 2.2.x to 2.3-dev will produce a lot of overhead each time.

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: What is the proper way to use 'svn switch'?
« Reply #2 on: June 30, 2009, 08:47:27 am »
I'm not planning on switching a lot; at this point, I'll be doing everything on the trunk, so it's a matter of fetching revisions by date.

So far though, I've had one time where switch worked right, and many times where it has failed. Right now I've got stuff like:

Code: [Select]
Kleiman-ibook:trunk michael$ svn info
Path: .
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 24913
Node Kind: directory
Schedule: normal
Last Changed Author: bayo-fr
Last Changed Rev: 24912
Last Changed Date: 2009-06-29 14:32:46 -0700 (Mon, 29 Jun 2009)

Kleiman-ibook:trunk michael$ svn info install-sh
Path: install-sh
Name: install-sh
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/tags/ufoai_2.2.1/install-sh
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 24913
Node Kind: file
Schedule: normal
Last Changed Author: tomshackell
Last Changed Rev: 3953
Last Changed Date: 2006-10-01 05:23:23 -0700 (Sun, 01 Oct 2006)
Text Last Updated: 2009-06-23 13:25:06 -0700 (Tue, 23 Jun 2009)
Checksum: aded5875c5d5830de6653181e8ced19c

So not everything is the same branch.