You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter McAlpine <pe...@gmail.com> on 2006/11/15 16:56:22 UTC
different peg behaviour for cat/ls and cp/log
Hello,
I've found that cat/ls have different behaviour for pegs than cp/log
for directories/files that have been deleted and recreated.
The commands below show what I'm talking about. As you can see, the
cat/ls commands find the file/revision I'm looking for whereas the
cp/log commands do not.
What am I missing here?
-Peter
export ROOTDIR=/tmp/delete_me
svnadmin create $ROOTDIR/repo
export SVN=file://$ROOTDIR/repo
mkdir -p $ROOTDIR/wc/alpha
echo what I want > $ROOTDIR/wc/alpha/file
svn import -m "initial import" $ROOTDIR/wc $SVN
rm -rf $ROOTDIR/wc
svn mv -m "move alpha to beta" $SVN/alpha $SVN/beta
svn mkdir -m "recreate alpha dir" $SVN/alpha
svn co $SVN $ROOTDIR/wc
cd $ROOTDIR/wc
echo what I dont want > alpha/file
svn ci -m "same path different file" alpha/file
svn rm -m "get rid of alpha" $SVN/alpha
svn up
# finds what I want
svn ls -r 1 $SVN/alpha/file@1 .
svn cat -r 1 $SVN/alpha/file@1 .
# does not find what I want
svn cp -r 1 $SVN/alpha/file@1 .
svn log -r 1 $SVN/alpha/file@1 .
Here is the output of these commands:
Adding /tmp/delete_me/wc/alpha
Adding /tmp/delete_me/wc/alpha/file
Committed revision 1.
Committed revision 2.
Committed revision 3.
A /tmp/delete_me/wc/alpha
A /tmp/delete_me/wc/beta
A /tmp/delete_me/wc/beta/file
Checked out revision 3.
svn: Commit failed (details follow):
svn: '/tmp/delete_me/wc/alpha/file' is not under version control
Committed revision 4.
D alpha
Updated to revision 4.
file
alpha/
what I want
svn: warning: URL 'file:///tmp/delete_me/repo' refers to a directory
svn: Path 'file:///tmp/delete_me/repo/alpha/file@1' not found in revision 1
svn: File not found: revision 1, path '/alpha/file@1'
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: different peg behaviour for cat/ls and cp/log
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 15, 2006, at 10:56, Peter McAlpine wrote:
> I've found that cat/ls have different behaviour for pegs than cp/log
> for directories/files that have been deleted and recreated.
>
> The commands below show what I'm talking about. As you can see, the
> cat/ls commands find the file/revision I'm looking for whereas the
> cp/log commands do not.
>
> What am I missing here?
[snip]
> # finds what I want
> svn ls -r 1 $SVN/alpha/file@1 .
> svn cat -r 1 $SVN/alpha/file@1 .
>
> # does not find what I want
> svn cp -r 1 $SVN/alpha/file@1 .
> svn log -r 1 $SVN/alpha/file@1 .
"svn cp" does not support peg revisions. See this bug:
http://subversion.tigris.org/issues/show_bug.cgi?id=2546
"svn log" did not support peg revisions until Subversion 1.4. See
this bug:
http://subversion.tigris.org/issues/show_bug.cgi?id=2287
Presumably you are using an earlier version of Subversion, and should
upgrade.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org