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

RE: [Subclipse-users] changing file case with re-factor

From: MATHUS Baptiste <mathus.b_at_mipih.fr>
Date: 2007-06-28 16:53:35 CEST

No. It will keep history.
There's another way to benefit of automatic refactoring, though it needs two commits : rename aFile to SomeFile (or whatever you like). Commit. Then rename SomeFile to AFile.
With Svn 1.4, I seem to remember you cannot rename a file twice without committing between those two renames. With Svn 1.5, it shouldn't be the case anymore (well, it doesn't solve your problem :-), but now you know that won't have to do the trick above for ever :-)).


        De : Bradley Wagner [mailto:bradley.wagner@hannonhill.com]
        Envoyé : jeudi 28 juin 2007 16:41
        À : users@subclipse.tigris.org
        Objet : Re: [Subclipse-users] changing file case with re-factor
        Do you also lose the file history (i.e. does it still function as a 'svn move')?

        - Bradley

        On Jun 28, 2007, at 10:36 AM, Mark Phippard wrote:

                On 6/28/07, Bradley Wagner <bradley.wagner@hannonhill.com> wrote:

                         Not sure if this a Subclipse or SVN problem, but when I try to rename a
                        file using the Re-factor menu and only change its case, I get a message that
                        the re-factor failed and there is a red SVN warning in the console:

                        Path is not a working copy directory
                        svn: Path
                        is not a directory

                        Weird message given that the path its referencing is a file.

                This is a limitation of Subversion on case-insensitive file systems
                like Windows and OSX. The easiest workaround is probably to do the
                rename in the repository browser and then update. Of course you lose
                some of the things refactoring will do for you, but that is the only
                way that works.


                Mark Phippard

                To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
                For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Jun 28 16:53:48 2007

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

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