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

Problems with SubWCRev

From: Ron Avriel <ravriel_at_hotmail.com>
Date: 2006-04-24 11:32:35 CEST

Hi,

A few problems I encountered with SubWCRev:

1. After adding and committing a new directory with files SubWCRev returns
"Last committed at revision 0" and "Updated to revision 0".
The same output is returned even after wc is repeatedly updated.
Note that svnversion correctly returns the version.
The only way (I found) to make SubWCRev return correct output is either
to completely delete the directory from disk and recover it with svn update
or to perform a second commit in directory and then update it.
See below for complete details.

2. In any case I think SubWCRev should return an error code if the
revision is zero. Today it returns OK.

3. If a file is added but not committed yet and SubWCRev is invoked
with -nm flags (return error for mixed revision or local modifications)
then SubWCRev ignores the added files and returns OK.
svnversion correctly reports local modifications.

I'm using SubWCRev 1.3.3, Build 6219 - 32 Bit.

Detailed output:

D:\temp\svn-test>svn add dir1
A dir1
A dir1\file1.txt

D:\temp\svn-test>svn commit -m "Initial version"
Adding dir1
Adding dir1\file1.txt
Transmitting file data .
Committed revision 121.

D:\temp\svn-test>"c:\Program Files\TortoiseSVN\bin\SubWCRev.exe"
D:\temp\svn-test\dir1
SubWCRev: 'D:\temp\svn-test\dir1'
Last committed at revision 0 <<<<< This is wrong <<<<<<<
Updated to revision 0 <<<<< This is wrong <<<<<<<

D:\temp\svn-test>svnversion D:\temp\svn-test\dir1
121 <<<<< Correct output of svnversion
<<<<<<<

D:\temp\svn-test>

After performing a second commit and update SubWCRev outputs OK:

D:\temp\svn-test>"c:\Program Files\TortoiseSVN\bin\SubWCRev.exe"
D:\temp\svn-test\dir1
SubWCRev: 'D:\temp\svn-test\dir1'
Last committed at revision 122
Updated to revision 122

Now a new file was added but not committed:

D:\temp\svn-test>svn status D:\temp\svn-test\dir1
A D:\temp\svn-test\dir1\file2.txt

SubWCRev is invoked with -nm

D:\temp\svn-test>"c:\Program Files\TortoiseSVN\bin\SubWCRev.exe"
D:\temp\svn-test\dir1 -nm
SubWCRev: 'D:\temp\svn-test\dir1'
Last committed at revision 122 <<<<< Added file is ignored. SubWCRev
return OK
Updated to revision 122 <<<<< Added file is ignored. SubWCRev
return OK

D:\temp\svn-test>svnversion D:\temp\svn-test\dir1
122M <<<< svnversion correctly reports modification ('M').

Thanks,
Ron

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Apr 24 11:35:57 2006

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

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