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