[p4] filename case woes: cannot rename Foo.H to Foo.h

Nick Guarracino NGuarracino at dataviz.com
Tue Jul 24 10:35:25 PDT 2007


> We have a perforce server running on windows 2003, and mostly windows-
> based
> clients.  Unfortunately, we have a number of check-ins where "Foo.h"
> was
> accidentally named "Foo.H".  This doesn't bother MSVC, but it does
> bother
> gcc on linux.  :-(
>
> How can I rename the file?

Hi Steve,
Here's a message I got from Perforce a while back when I ran into this problem. The example is renaming //depot/DIR1 to //depot/dir1. Kind of a pain but it does work.

---------------------------
p4 sync //depot/DIR1/...
p4 delete //depot/DIR1/...
p4 submit
p4 sync //depot/dir1/... at delete_changelist-1

The following steps are to add the correct path to the Server if not already in.

p4 flush //depot/dir1/...#none
p4 add //depot/dir1/...
p4 submit


The flush to #none is required because the Windows server still has your db.have filename as lowercase, and if you "p4 add" it afterwards, it'll use that lowercase name instead of the upper.

All users who want to pick up the case rename will have to do a sync to #none before getting the new filename.

You should do this from a Windows client.
---------------------------

--Nick



More information about the perforce-user mailing list