[p4] Best way to prevent checkins with wrong line endings?
Dan Halbert
halbert at everyzing.com
Tue Nov 6 14:25:13 PST 2007
Jay Glanville wrote:
> 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.
>
Are you using "share" because sync'd files are indeed shared between,
say, Windows and Unix? We've stuck with the default "local" and don't
mix Windows and Unix workspaces, and we've been fine.
You could write a script to look at all the clients on a periodic basis
and just check to see what "LineEnd:" is set to. Or use a form trigger
and check LineEnd whenever a user edits a client form.
It would be nice if there were some way to set a default client
template; then you could make the defaults be what you want.
Unfortunately, I don't see such a thing, but maybe I am missing something.
Dan
More information about the perforce-user
mailing list