[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: Fraser Campbell <fraser_at_georgetown.wehave.net>
Date: 2004-10-19 13:57:33 CEST

On Tuesday 19 October 2004 04:18, J Robert Ray wrote:

> 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

Cool. I'd hoped there'd be a simple way since it seems (to me) like a pretty
trivial operation but sounds fine.

> 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.

Agreed, I took the opportunity over the last few days to fully update to the
trunk, it was a better solution to my problem. What happened was significant
new code was being developed in a branch and that branch was aborted. Some
code was copied from the branch back to the trunk, but the live WC was never
fully updated due to my paranoia ... this is a website and I don't have any
good way to test at the moment (besides actually publishing to the site).

Getting myself in this bind though did lead me to re-read the svn book and I
discovered that I could do "svn status --show-updates --verbose|grep \*",
this allowed me to easily see what was going to be updated so that I could
quickly study those changes before doing a full "svn up".

Of course cancelling an "svn status --show-updates --verbose" midstream
resulted in a corrupted, unrecoverable repository ... fortunately svndump was
able to recover all revisions for me and I rebuilt the repository without
data loss. Still annoying and *very* time-consuming.

-- 
Fraser Campbell <fraser_at_wehave.net>                 http://www.wehave.net/
Georgetown, Ontario, Canada                               Debian GNU/Linux
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 19 13:58:06 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.