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

RE: Re: Bug Report: file Case conflict

From: Gleason, Todd <tgleason_at_impac.com>
Date: Mon, 18 Feb 2008 11:17:33 -0800

When I had this happen, I renamed the file to something else, and then
renamed it back, with the correct case. I may have had to do this in
two separate commits, as well (I don't recall). For example:

build.txt -> build_TempRename.txt -> BUILD.TXT

It sounds like Subversion would let you rename it directly, but TSVN
won't. TSVN could offer an option to notice the case and rename the
file (either as a global option, or as something to be resolved in the
commit dialog). But the workaround is pretty simple, so long as you
don't make mistakes all over the place.

-----Original Message-----
From: Helder [mailto:heldersepu_at_gmail.com]
Sent: Monday, February 18, 2008 12:02 PM
To: users_at_tortoisesvn.tigris.org
Subject: Re: Bug Report: file Case conflict

Thanks Simon for your response.

 Yes it does not seem that we are communicating very well...
when you say:
If you are adding a file then it cannot already be versioned.
I'm sorry to say, but you are wrong, that was my example, if
you rename just the case of a file for example let's do
"build.txt" to "Build.TXT" , for windows that is the same file,
but you can add the second one!
I recorded a small video using VMware please take a look:
http://www.sepuweb.com/tsvn/
TSVN Add.avi

I have two answers to your question:
so who is to say what the 'right' case is?
1- in the ".svn\text-base\" folder there is a copy of the files with
    the correct case
2- take a look at file File in the src\SVN folder:
     SVNStatusListCtrl.cpp
    look for the function:
      bool CSVNStatusListCtrl::BuildStatistics()

As soon as I have some time I will try to add the option to
auto adjust the file case at all times.

Thank you for you time.
Helder

 On 16/02/2008, Helder <heldersepu_at_gmail.com> wrote:
> Thanks a lot for you response, that explains a lot.
>
> I just notice that if the Add, Commit or Check for modifications
> command is done at the folder level it will auto adjust the case
> (recursively) to all the files within a folder.
>
> I reported this because it's been an administrative nightmare
> fixing these issues, I notice that new users not very familiar
> with TSVN, use the windows explorer to add & commit files,
> all this actions directly on the files and never at the folder level.
>
> Maybe is because I never had the "necessity" of adding a file
> with the wrong case in you example, to fix a file with the wrong
> case we can use the Repo-Browser. but at least there should be
> an option to auto adjust the case at all times.

 We're not communicating here. If you are adding a file then it cannot
 already be versioned, so who is to say what the 'right' case is? The
 only time you can run into trouble is when one person adds a file from
 their working copy, and then someone else adds a file with the same
 name but different case from their working copy without updating
 first. In that case you have to ask 'why are those 2 people working on
 exactly the same thing without talking to each other?'
 Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-02-18 20:17:59 CET

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

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