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

Re: Noob Question

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Sat, 31 May 2008 09:22:30 -0700

On Sat, May 31, 2008 at 12:16 AM, Kurt Federspiel <federonline_at_yahoo.com> wrote:
> Hi...
> I have a repository that stores source code written for a WinXP/2003 application. We are in the process of porting to Linux, and want to set up a new repository to hold the ported code. The project and directory names are the same.
> So I have:
> /Repositories
> /Repositories/Win
> /Repositories/Win/xmlrpc
> /Repositories/Linux
> /Repositories/Win/xmlrpc
> /Repositories/Win and /Repositories/Linux were created with svnadmin. Whenever I try to svn add/update/commit to the /Repositories/Linux/xmlrpc, I get a revision around 226, which is (obviously) the Win Repository (since the Linux Repo is brand new)
> Am I being stupid? I want to keep the sources separate for now, so how do I add/update/commit to the /Linux Repository? Can someone please help me be unstupid??
> Thanks.
> Kurt The Noob.
> PS. For setting up an apache server, having one repository, and getting several clients running, SVN was the bomb; it took me about 80 minutes to do it. If only EVERTHING were this easy...hats off to the dev and support teams.

You can only check code into the repository that corresponds to the
repository the working copy was checked out from.

Use 'svn info' to see what base URL ('Repository Root') is. If you've
recently moved the repository location, you'll need to run 'svn switch
--relocate' on the working copies: this makes the working copy point
to the new repository location. When I do this, I always, remove or
rename the original repo dir, or just disable the access mechanism
(svnserve for svn:// or httpd for http://) to make sure I can not
accidently commit to the originaly repo. Once, verified (by check out
and by using 'svnadmin verify' on the new repo), I permanently delete
the original repository.

If you want to move/share code between the Linux and Win repositories,
they have to be in the same repository. Note: you can use
svn:external, or just export code from one and commit it to the other
(but this loses all history).

- Kevin

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-31 18:22:53 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.