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

Re: Partial update possible?

From: J Robert Ray <jrray_at_imageworks.com>
Date: 2004-10-19 10:18:12 CEST

Fraser Campbell wrote:

> Hi,
>
> I have a new file in the repository that I'd like to add into my existing
> working copy but without doing a wholesale update.
>
> There is a problem with this:
>
> svn up x.c
> svn: 'x.c' is not under version control
>
> Giving the full path to the repository doesn't help either:
>
> svn up http://localhost:8888/svn/blah/x.c
> svn: 'http://localhost:8888/svn/blah/x.c' is not a working copy
>
> When the file already exists in the repository then I have no problem updating
> the individual file.
>
> What can I do? Perhaps it sounds like an odd request but due to non-ideal
> situation (WC is a live system) I have to not grab all updates until I have
> the time to review them (i.e. I anticipate breakage if a full update is
> done).
>

It sounds like you might want to create a branch from your wc, and then
'switch' your wc to that branch. Then, you can add the x.c file to the
branch, and update the whole wc to get that one change.

e.g.:
svn copy . http://localhost:8888/svn/blah_branch
svn switch http://localhost:8888/svn/blah_branch
svn copy http://localhost:8888/svn/blah/x.c
http://localhost:8888/svn/blah_branch/x.c
svn update

There may be a more straightforward way. Having a branch may be good
anyway since it sounds like you don't want to blindly follow the trunk.

- Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 19 10:18:35 2004

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.