[p4] Line-ending problems
Ivey, William
william_ivey at bmc.com
Mon Feb 26 08:48:30 PST 2007
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com]On Behalf Of Roy Smith
>
> I'm trying to get a better handle on how line endings work in P4.
>
> One of our users recently submitted a changelist where all the files
> submitted got their line endings changed from newlines to returns.
> He claims he did the submit using P4V under linux, using a workspace
> that specifies "local" line endings. The local copies of the files
> in his home directory all have newlines when examined with "od -c".
> We're all stumped as to why we might have ended up with returns in
> the submitted versions.
One way is if he received copies of those files from another system.
That is, he opened them for edit, copied files from another machine
onto them, then submitted them.
We've had that happen when people have passed files around for review,
then the reviewer submitted them without checking the EOLs.
I try to encourage all our users to set their clients to "unix" which
actually does no EOL conversion in practical terms. This works for
us because we have a mix (intentionally) of Windows and unix style
files which must retain their own EOL types. (It does break down when
someone reinstalls Perforce and forgets the default setting is local.)
-Wm
More information about the perforce-user
mailing list