You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Je...@Bertelsmann.de on 2004/05/13 09:20:40 UTC
Creating complex tag with mixed revisions fails
Hi all,
I am trying to create a complex tag from a working copy where some files are
backdated to older revisions. This feature is described in the subversion
book (chapter 4 "Branching And Merging", section "Tags", subsection
"Creating a Complex Tag") but it seems not to work. I read the documentation
again and again but cannot find a mistake in the way I do it:
1. Checking out a fresh working copy from repository trunc of my project
(svn checkout):
$ svn co svn://myhost/SVNPSNK3/myproject/trunc myproject
A myproject/orenge
A myproject/orenge/nestlib
A myproject/orenge/bin
... (many more files here)
Checked out revision 10.
2. Verifying the status of the working copy directory where I would like to
backdate a file (svn status):
$ cd directory
$ svn status -v
10 2 kam .
10 1 kam splus.pm
10 1 kam oracs.pm
10 1 kam orasdb.pm
10 2 kam perftool.pm
10 1 kam execute.pm
3. Backdating file "perftool.pm" from rev 2 to older revision 1 (svn
update):
$ svn update -r 1 perftool.pm
U perftool.pm
Updated to revision 1.
4. Verifying status of the directory again (svn status):
$ svn status -v
10 2 kam .
10 1 kam splus.pm
10 1 kam oracs.pm
10 1 kam orasdb.pm
1 1 kam perftool.pm
10 1 kam execute.pm
5. Making a snapshot of the whole working copy by creating a tag (svn copy
WC -> URL) fails now:
$ ls
./ ../ myproject/
$ svn copy myproject svn://myhost/SVNPSNK3/myproject/tags/release1
-m "Release 1 with old perftool"
svn: Commit failed (details follow):
svn: Out of date:
'/myproject/tags/release1/oracle/directory/perftool.pm' in transaction '16'
Of course the file perftool.pm is out of date, it is from an older revision.
But this is exactly the snapshot I need and this should be a subversion
feature.
I also tried to create the directory tags/release1 first in the repository
before making the snapshot. This did not help.
The svn version I use is 1.0.2 (r9423), self compiled on Linux.
I would be very happy if someone could help me in this issue.
Regards
Jens Kammler
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Creating complex tag with mixed revisions fails
Posted by Michael W Thelen <th...@cs.utah.edu>.
* Jens.Kammler@Bertelsmann.de <Je...@Bertelsmann.de> [2004-05-13 10:33]:
> The svn version I use is 1.0.2 (r9423), self compiled on Linux.
>
> I would be very happy if someone could help me in this issue.
Not that it's much help, but I went through the same steps you did
(update, backdate a file, then try to copy to /tags), and everything
worked fine. That was also with a 1.0.2 client (r9423) from the Debian
subversion package, and 1.0.0 server (compiled from source). What is
your server version?
-- Mike
--
Michael W. Thelen
Civilization advances by extending the number of important operations we can
perform without thinking.
-- Alfred North Whitehead
Re: Creating complex tag with mixed revisions fails
Posted by Erik Huelsmann <e....@gmx.net>.
Hi,
> I am trying to create a complex tag from a working copy where some files
> are
> backdated to older revisions. This feature is described in the subversion
> book (chapter 4 "Branching And Merging", section "Tags", subsection
> "Creating a Complex Tag") but it seems not to work. I read the
> documentation
> again and again but cannot find a mistake in the way I do it:
[note: I haven't done this myself yet]
You could try to backdate the file by running 'svn cp -r REPOS WC' and
committing that. That way svn knows the file has intentionally been
backdated.
> 3. Backdating file "perftool.pm" from rev 2 to older revision 1 (svn
> update):
> $ svn update -r 1 perftool.pm
> U perftool.pm
> Updated to revision 1.
>
> 5. Making a snapshot of the whole working copy by creating a tag (svn copy
> WC -> URL) fails now:
> $ ls
> ./ ../ myproject/
>
> $ svn copy myproject svn://myhost/SVNPSNK3/myproject/tags/release1
> -m "Release 1 with old perftool"
> svn: Commit failed (details follow):
> svn: Out of date:
> '/myproject/tags/release1/oracle/directory/perftool.pm' in transaction
> '16'
bye,
Erik.
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Creating complex tag with mixed revisions fails
Posted by Hugo Heden <he...@foi.se>.
On Thu, 13 May 2004 Jens.Kammler@Bertelsmann.de wrote:
> Hi all,
>
> I am trying to create a complex tag from a working copy where some files are
> backdated to older revisions. This feature is described in the subversion
> book (chapter 4 "Branching And Merging", section "Tags", subsection
> "Creating a Complex Tag") but it seems not to work. I read the documentation
> again and again but cannot find a mistake in the way I do it:
I can't see why that wouldn't work. But -
Have you tried doing the copy from WC to WC and then commiting? Something like
$ ls
./ ../ myproject/
$ cd myproject
$ ls
tags trunk branches
$ ls tags
[nothing here]
$ svn copy trunk tags/release1
$ svn commit -m "Blah bla"
usually works for me. How does that work?
Best Regards
Hugo Heden
>
> 1. Checking out a fresh working copy from repository trunc of my project
> (svn checkout):
> $ svn co svn://myhost/SVNPSNK3/myproject/trunc myproject
> A myproject/orenge
> A myproject/orenge/nestlib
> A myproject/orenge/bin
> ... (many more files here)
> Checked out revision 10.
>
> 2. Verifying the status of the working copy directory where I would like to
> backdate a file (svn status):
> $ cd directory
> $ svn status -v
> 10 2 kam .
> 10 1 kam splus.pm
> 10 1 kam oracs.pm
> 10 1 kam orasdb.pm
> 10 2 kam perftool.pm
> 10 1 kam execute.pm
>
> 3. Backdating file "perftool.pm" from rev 2 to older revision 1 (svn
> update):
> $ svn update -r 1 perftool.pm
> U perftool.pm
> Updated to revision 1.
>
> 4. Verifying status of the directory again (svn status):
> $ svn status -v
> 10 2 kam .
> 10 1 kam splus.pm
> 10 1 kam oracs.pm
> 10 1 kam orasdb.pm
> 1 1 kam perftool.pm
> 10 1 kam execute.pm
>
> 5. Making a snapshot of the whole working copy by creating a tag (svn copy
> WC -> URL) fails now:
> $ ls
> ./ ../ myproject/
>
> $ svn copy myproject svn://myhost/SVNPSNK3/myproject/tags/release1
> -m "Release 1 with old perftool"
> svn: Commit failed (details follow):
> svn: Out of date:
> '/myproject/tags/release1/oracle/directory/perftool.pm' in transaction '16'
>
> Of course the file perftool.pm is out of date, it is from an older revision.
> But this is exactly the snapshot I need and this should be a subversion
> feature.
>
> I also tried to create the directory tags/release1 first in the repository
> before making the snapshot. This did not help.
>
> The svn version I use is 1.0.2 (r9423), self compiled on Linux.
>
>
> I would be very happy if someone could help me in this issue.
>
> Regards
>
> Jens Kammler
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org