[p4] Best way to prevent checkins with wrong line endings?
Jay Glanville
Jay.Glanville at naturalconvergence.com
Wed Nov 7 07:28:11 PST 2007
Thanks to all for your suggestion. I will investigate spec triggers
more intimately.
---
Jay Dickon Glanville
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Jay Glanville
> Sent: November 6, 2007 1:06 PM
> To: Perforce Users Mailing List
> Subject: [p4] Best way to prevent checkins with wrong line endings?
>
>
> ... This time with a subject line ...
>
> Hello all,
>
> What, in your opinion, is the best way to prevent users from
> submitting
> text files that use the 'wrong' (ie: Window's CR/LF) line
> ending style?
>
> I've told all my P4 users that they should be using the 'share' line
> ending property for their workspaces, but there's always one
> in a bunch
> who'll forget.
>
> My first thought was to write a trigger that would check all
> text files
> on check in, but that might get a little onerous on the server,
> especially when creating a new branch with 17,000 files in it.
>
> Any suggestions I haven't thought of?
>
> Thanks
>
> JDG
>
> ---
> Jay Dickon Glanville
>
> _______________________________________________
> 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