[p4] Case insensitivity issue

Sweeney, Tony sweeney at ea.com
Fri Oct 27 04:20:23 PDT 2006


Perforce have a program that is expressly for detecting and fixing a
similar problem (it's an issue when migrating a depot from Windows to
Linux).  You run p4migrate over a checkpoint, and it generates depot
path pairs like yours below, where file paths differ only in case.  On
windows you then edit this file to tell it what your preferred case is
for the files or directories that it found, and run the tool again, this
time telling it to use the mapfile to case correct the checkpoint.  When
you're done, you can then reload the case-corrected metadata from the
output of the second pass.  It won't fix your problem, since you are on
Linux, and those really are two different files, not just case
inconsistent metadata.  It will, however, let you identify the scale of
the problem.  On a separate note, we are largely a Windows shop, but we
use Linux for our Perforce servers for performance reasons.  We avoid
the case issue by running our servers with the undoc case insensitivity
flag (-C1), which makes the server run in Windows emulation mode.  This
prevents us from getting case-only path differences in the first place.
You have to run a server with this flag from inception, however.


Here's where you'll find p4migrate on the Perforce site:

ftp://ftp.perforce.com/perforce/tools/p4-migrate/p4migrate.html
ftp://ftp.perforce.com/perforce/tools/p4-migrate/

Tony.

quis custodiet ipsos custodes -- Juvenal VI, 347-8  

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of David Chou
> Sent: 27 October 2006 05:56
> To: perforce-user at perforce.com
> Subject: [p4] Case insensitivity issue
> 
> I'm running Perforce on a Linux server and my users have run into the
> issue of case insensitivity.  In many places throughout Perforce there
> are multiple files with the same name but with different casing. Ie.
> //foo/Bar.txt vs. /foo/bar.txt 
> 
>  
> 
> Has anyone run into this issue and have a way to find all 
> files that are
> like this in the system?
> 
>  
> 
> -David Chou
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 



More information about the perforce-user mailing list