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

Re: problem: svn status reports same files both "?" and "!" (encoding?, mac os x, svn 1.4.2)

From: B. Smith-Mannschott <benpsm_at_gmail.com>
Date: 2006-12-19 19:11:01 CET

On Dec 19, 2006, at 17:21, Kenneth Porter wrote:

> --On Tuesday, December 19, 2006 4:30 PM +0100 "B. Smith-Mannschott"
> <benpsm@gmail.com> wrote:
>
>> When I execute "svn status", it recognizes each file with non-ascii
>> characters in its name as being both 'not under version
>> control' (?) and
>> 'missing' (!). This, is an obvious contradiction.
>
> It sounds like "svn status" is unable to display the difference
> between the repo's idea of the filename and the local filesystem's
> representation.

Well, yes, but whatever it is it's not obvious: when redirected to a
file, both the ls command (which displays the names incorrectly) and
svn status (which displays them correctly) are producing valid UTF-8.
The .svn/entries file also contains valid UTF-8.

(Incidentally, my work machines run Linux (Ubuntu 5.x) and Windows
(XP) and I've not had this problem on either of them.)

But, it was in verifying this, that I discovered an even greater oddity.

Ask for the status of the directory, and you get every file (with
multi-byte characters) twice. (I'm piping through egrep to filter out
irrelevant stuff.)

$ svn status --non-recursive --verbose | egrep '[.]doc$'

? VJ_Überblick.doc
? VJ_Geschäftsregeln.doc
? VJ_Änderungsübersicht.doc
              4200 3572 smithma
VJ_Spezifikation_Validierungsmodul.doc
! 4200 1613 ado VJ_Überblick.doc
! 4200 4143 ado VJ_Änderungsübersicht.doc
              4200 4112 ado VJ_Fehlermeldungen.doc
! 4200 4112 ado VJ_Geschäftsregeln.doc

But, if we ask for the status of the three files explicitly by
letting the shell expand the *.doc wildcard before calling svn, then
no such duplication takes place.

$ svn status --non-recursive --verbose *.doc | egrep '[.]doc$'

? VJ_Änderungsübersicht.doc
              4200 4112 ado VJ_Fehlermeldungen.doc
? VJ_Geschäftsregeln.doc
              4200 3572 smithma
VJ_Spezifikation_Validierungsmodul.doc
? VJ_Überblick.doc

Just to rule out the obvious, the .svn/entries file does indeed only
contain one entry for each of these files:

$ egrep '[.]doc$' < .svn/entries
VJ_Spezifikation_Validierungsmodul.doc
VJ_Überblick.doc
VJ_Änderungsübersicht.doc
VJ_Fehlermeldungen.doc
VJ_Geschäftsregeln.doc

Any ideas on what I can do to make svn behave?

// Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 19 19:12:04 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.