Replacing files in a tag that is a copy of another tag, with revisions from trunk
From: Thomas Dudziak <tomdzk_at_gmail.com>
Date: 2007-07-16 08:26:01 CEST
Hi folks,
I have a somewhat unusual tagging problem and checkout/update/merge
In short, I need to create tags for older revisions of files, and if
* checkout the individual files into the working directory, each at
For example, let's assume trunk contains files A, B, C, all at
svn mkdir <repo url>/tags/1
While this works (and generates only one revision per tag), the tag is
To continue the example, let's assume that tag 2 has file A now at
svn mkdir <repo url>/tags/2
Now, the idea that I had was the following:
* svn copy <previous tag> <new tag> to create the initial new tag
E.g.
svn copy <repo url>/tags/1 <repo url>/tags/2
The step of updating A however proves to be impossible. I tried
* svn co -r 2 <repo url>/trunk/A <work dir>/A
This simply refuses to checkout the file, complaining about:
svn: File not found: revision <revision of tag 2>, path "trunk/A"
Why does it use the tag revision (e.g. 6) instead of the one specified ?
* svn up -r 2 <work dir>/A tells me:
At revision 2.
but when I check the file via svn log, I get a "is not under version
* svn merge fails with different error messages depending on what syntax I use.
- svn merge -r 1:2 <repo url>/trunk/A
fails with:
svn: File not found: revision <revision of tag 2>, path "/trunk/A"
Same as the svn co command above, it uses the revision of the file in
- svn merge <repo url>/trunk/A@1 <repo url>/trunk/A@2
yields:
svn: Cannot replace a directory from within
which, honestly, does not tell me anything at all.
- svn merge <repo url>/tags/2/A <repo url>/trunk/A@2
Same error, "svn: Cannot replace a directory from within".
svn merge <repo url>/tags/1/A <repo url>/trunk/A@2
Same error again.
I also tried to add --ignore-ancestry to the merge commands, but there
I searched on the Internet but could not find anything useful for my
* Create the first tag containing specific revisions (non-HEAD) of
* Create the second tag as a copy of the first tag, and then update
cheers,
---------------------------------------------------------------------
|
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.