Re: how to update a file's copy in another directory
From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-10-17 17:00:20 CEST
pmarek@users.sourceforge.net writes:
> # how can I get dir2/file to be dir1/file revision 2?
> # svn up -r 2 dir2/file
This won't work, because 'svn up' only moves through revisions (time).
But its cousin, 'svn switch', moves through revisions (time) *and*
So something like
svn switch -r2 http://.../dir1/file dir2/file
Now you have a working copy with 'mixed' URLs. You've essentially
Unfortunately, because it's an *old* version of the branch (r2), if
>
Correct. 'svn cp' will never overwrite anything.
> # svn co -r2 file:///home/p107/test/svn/data.20548/repos/dir1/file dir2/
You can't checkout a foreign URL into a working copy of a different
> I believe that I can delete the file and cp another revision - but that's
That's the only solution. If you want the change to be *permanent*,
$ svn rm dir2/file
$ svn commit
---------------------------------------------------------------------
|
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.