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

svn:ignore question (with test script)

From: Hensley, Richard <Richard.Hensley_at_McKesson.com>
Date: 2007-03-01 00:09:03 CET

I have a case where I'm trying to ignore some directories during add,
and I don't quite know why it's not working the way I expect. Here is a
sample script that demonstrates my question.

#!/bin/sh
DIR=testrepos
REPOS=file:///rhensle/test/testrepos

rm -rf $DIR
rm -rf wc
svnadmin create $DIR
svn mkdir $REPOS/trunk -m commit1
svn co $REPOS/trunk wc
echo tmp > ig
echo log >> ig
echo .xyz >> ig
svn propset svn:ignore -F ig wc
svn commit wc -m commit2
echo running prop get
svn propget svn:ignore wc
cd wc
mkdir log
mkdir tmp
mkdir this
echo stuff > this/x.txt
echo morestuff > .xyz
echo junk > log/x.txt
echo morejunk > tmp/more.txt
echo "running stat"
svn stat
echo "running add"
svn add *

With this script, I got the following output:

$ ./test

Committed revision 1.
Checked out revision 1.
property 'svn:ignore' set on 'wc'
Sending wc

Committed revision 2.
running prop get
tmp
log
.xyz

running stat
? this
running add
A log
A log\x.txt
A this
A this\x.txt
A tmp
A tmp\more.txt

I expected the following output for the running add part because I
ignored tmp and log.
A this
A this\x.txt

Since I didn't get that output, I obvious don't understand what I did.

Can anybody explain this to me?

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 1 00:09:32 2007

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.