[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

different peg behaviour for cat/ls and cp/log

From: Peter McAlpine <petermca_at_gmail.com>
Date: 2006-11-15 17:56:22 CET

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_at_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
Received on Wed Nov 15 17:57:15 2006

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.