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

BUG: svn status, win32 and mixed case

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2004-07-16 18:46:05 CEST


Please take look following two outputs of scripts in W2K (svn 1.0.5):

I think that the second 'svn st -uv' or 'svn st' is wrong because it
doesn't show F.txt as missing.

# svn st -uv version:
> svn up
At revision 2.
> svn st -uv
                2 2 JAV .
                2 2 JAV F.txt
Status against revision: 2
> move F.txt f.txt
# won't show missing F.txt
> svn st -uv .
? f.txt
                2 2 JAV .
                2 2 JAV F.txt
Status against revision: 2
> del f.txt
> svn st -uv .
                2 2 JAV .
! 2 2 JAV F.txt
Status against revision: 2

# svn st version
>svn st -uv
                2 2 JAV .
                2 2 JAV F.txt
Status against revision: 2
>move F.txt f.txt
# won't show missing F.txt
>svn st .
? f.txt
>del f.txt
>svn st .
! F.txt

This is really deceptive, and people has been bitten by this here
several times so far in following situation:

1) Open Visual Studio
2) Create MFC project
   -> this will create a file named Resource.h
3) put all your hard work under version control
4) edit Resource.h with VS
   -> VS will save it as resource.h
5) oops, resource.h isn't under version control, I will add it...
6) Now you have a problem

Definetly the first culprit is the point 4 and human factor in phase five won't
help, but it would be really nice if SVN would lend you a helping hand, and
report Resource.txt as missing, what it actually is.

After adding f.txt, you will get:
>svn st -uv .
                2 2 JAV F.txt
                3 3 JAV f.txt
                2 2 JAV .
Status against revision: 3

BR, Jani

P.S. I am heading away for 2 weeks, so I could not reply to this thread, but I will
check archives when I am back.

P.P.S. The script:

set repobase=C:/jav/tmp/svntest

svnadmin create test_repo
svn ls file:///%repobase%/test_repo
svn mkdir -m "" file:///%repobase%/test_repo/trunk
svn co file:///%repobase%/test_repo/trunk wc
cd wc
echo F > F.txt
svn add F.txt
svn ci -m "F"
svn up
svn st
move F.txt f.txt
svn st .
del f.txt
svn st .

Jani Averbach 
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 16 18:46:27 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.