> pmarek@users.sourceforge.net writes:
> > Hello everybody,
> >
> > I'd like to know how to handle the following case.
> > (But beware: I'm still using 0.25, and this may be the problem)
>
> Can you send an exact transcript of what you're typing? It's very
> hard for me to understand what you're doing just by your verbal
> descriptions.
here comes the script:
#!/bin/bash
DATA=`pwd`/data.$$
# initialization
mkdir $DATA
cd $DATA
svnadmin create --bdb-txn-nosync repos
svn co file://$DATA/repos wc
cd wc
svn mkdir dir1
echo A > dir1/file
svn add dir1/file
for x in A B C D E F G
do
echo $x > dir1/file
svn ci -m "to $x"
done
# Now I'd like to have a copy of dir1/file revision 4 in dir2
svn mkdir dir2
svn cp -r 4 dir1/file dir2/file
svn ci -m "with dir2/file from 4"
# so far, so good.
# The problem:
#-------------
# how can I get dir2/file to be dir1/file revision 2?
# I tried:
# svn up -r 2 dir2/file
#> svn: Filesystem has no item
#> svn: file not found: revision `2', path `/dir2'
# svn cp -r 2 dir1/file dir2/file
#> svn: Entry already exists
#> svn: file `dir2/file' already exists.
# svn co -r2 file:///home/p107/test/svn/data.20548/repos/dir1/file dir2/
#> svn: Obstructed update
#> svn: 'dir2' is already a working copy for a different url
I believe that I can delete the file and cp another revision - but that's
2 new revisions instead of 1 :-)
Maybe something could be done with "svn merge"?
Although I believe that since svn has complete historical information about
this file it should be possible to get any revision of this "entitity",
regardless about where it is "hard-linked".
I take a unix-filesystem as base, so that a "file" is only a name for an
entity - and especially in svn, just because an "entity" has no "name" (no
incarnation) in a given revision that doesn't mean that it doesn't exist
anymore - it is just not "visible" by name.
Thanks for all hints.
Regards,
P.Marek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 17 08:43:26 2003