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

RE: Commit a mixed revision working copy as new HEAD?

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-02-24 15:56:32 CET

> From: Zachary Pincus [mailto:zpincus@stanford.edu]

> I'm wondering if there is a way to commit a mixed revision
> working copy
> as the new HEAD.

I think what you're looking for is:

svn checkout http://head-of-repository wc-dir
svn update -r100 wc-dir/file1
svn update -r120 wc-dir/file2
...etc... to get the WC based on the right revisions of all the files,
          and any additional edits needed
svn delete http://head-of-repository
svn copy wc-dir http://head-of-repository

That gets all the history connections right.

Though it probably won't work if you are really updating the entire
repository tree, because I don't expect you can delete the top directory.
(You can probably fake it by doing "svn delete" on each member of
head-of-repository and "svn copy" on each member of wc-dir.) But it should
work if "head-of-repository" is any sub-directory of the repository. (And
you have a branch structure in place already, don't you? So you shouldn't
be wanting to do this on the top dir anyway.)

Of course, it vaporizes any changes committed between the checkout and the
copy, but any method of fixing the problem is going to have problems like
that.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 24 16:01:26 2005

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.