[p4] Trying to avoid adding files with mac line endings

Jay Renbaum Jay.Renbaum at hillcrestlabs.com
Mon Apr 9 13:29:13 PDT 2007


Occasionally, one of our developers will save a file on our Linux system
while working with MS Dev through samba and the file gets added to
Perforce as a Mac format file. This does not cause a problem with our
Linux builds, but when building on Windows, Visual Studio refuses to
build the file due to the line ending issue. We keep having to manually
correct this problem each time it occurs. 

 

I can write a trigger that fails the submit if the line ending is not
Windows or Linux which should catch the problem, however, what I am more
interested in is a way to force a conversion to Linux or Windows during
the submit so that the problem does not occur.

 

Any ideas will be appreciated.

 

Thanks,

 

Jay 

 



More information about the perforce-user mailing list