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

Issue with file name case on adding files

From: Will Wilson <willw_at_fireflyworlds.com>
Date: 2006-06-22 19:17:21 CEST

Hi All,
        I've just spent a rather stressful hour attempting to work out
why a colleagues working copy was having some rather major & seemingly
quite bizarre issues. Anyway, to cut to the chase, the following gives a
recipe for reproducing the issue:

1. Create a file test.TXT & add it to a WC. Then commit the change to
the repository.
2. Rename (not via TSVN) the file to test.txt. The file should now show
as non-versioned.
3. Add the renamed test.txt file to the WC (you can see where this is
going).
4. Commit the change and prepare for all hell to break loose...

Now obviously there needs to be a sanity check in the add file dialog
(similar to the one that occurs in the commit dialog -
http://svn.haxx.se/tsvn/archive-2005-08/0115.shtml) that will fix up the
file name case to that of the original & show nothing to add. Hopefully
that's a pretty easy fix.

Secondly & perhaps more controversially I have a pair of feature
requests...

1. Add a special "Fix file names" action on the TSVN sub-menu to allow
users to do the file name case fix explicitly - I never even knew about
the auto repair feature used by the commit dialog until I ran into it
during a mailing list search! Thinking about this, perhaps there should
be some sort of user feedback when this action occurs? Something along
the lines of "n files have had their names changed back to the correct
case" might suffice.

2. Problem: Quite a few of the art tools we use with a Windows heritage
(notably 3DS MAX & Photoshop) have a tendency to save files with an
uppercase extension. This tends to be annoying, both for lack of
consistency & auto-props (where we have to have multiple entries i.e.
*.dds & *.DDS to cover the variations).

Solution: Have a custom property tsvn:enforceextcase = "lower|upper"
that could be used to convert case on the rouge file extensions when the
files are added via TSVN. This would seem like a good fit for TSVN as
this is primarily a issue seen on the Windows platform (as most
non-Windows applications are careful to use lowercase extensions) & TSVN
is the preeminent Windows client for Subversion.

What do you think?

Cheers,
        Will.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jun 22 19:17:38 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.