Closed Beep6581 closed 9 years ago
I fully support this unification.
The next step is probably to work out some kind of a formatting style of the source
files, and use this style in every RT source file.
Reported by lebedev.ri
on 2012-01-14 10:39:08
Some coders don't care about formatting, so i think it's pretty useless to battle for
that, even if i would support it.
DrSlony, what problem occures with the actual different line endings? Your patch seems
to be HUUUUUGE, and will break all developper's work (i.e. they'll need to resynchronize
everything after that), so i really hope that it's really worth it. Before committing
it, you should alert developers about that and ask them to stick to one line endings...
Is the patch available?
Reported by natureh.510
on 2012-01-15 23:35:15
I agree with Hombre here. While I would like some consistency regarding line endings,
we should wait until a lull in coding activity. For instance I am working (slowly)
on a major reworking of noise reduction, and such a change to line endings will make
it hugely complicated to apply the patch -- the merge will have to be analyzed line
by line, since my working directory will have different line endings from the repository
and no lines of changes in the patch will match to the changed repo.
On top of that, who will be the enforcer of line ending uniformity in the future, so
that we don't drift back to a hodgepodge of different conventions?
Reported by ejm.60657
on 2012-01-16 00:21:55
Hombre: there is no patch available, it would just be a modification of line ending
code that "hg diff -c xxxx" doens't report, only "hg status" does.
Emil: seems to me that this is the lull :] Subjectively this is a very low activity
period.
Since mercurial doesn't treat line endings as part of the code (proof: "diff -c tip"
reports nothing), I don't think your patch will need to be changed at all. If it will,
it's a very simple change and I'm here to help you. Of course I don't want to cause
a line-for-line headache, and I don't think this will cause one (but, to be honest,
I have no empirical proof that it won't. Then again, it's so easy to rollback in case
it does. Or run dos2unix on your source file before committing.)
There will be no enforcer. Devs will continue to use all sorts of tools that handle
a mixture of line endings styles in different ways. I think it's a good thing to make
them consistent from time to time.
Reported by entertheyoni
on 2012-01-16 01:20:31
Not seeing commits doesn't mean that we're lazy DrSlony ;). I for one have 2 patch opened
that are a bit complicated, so it takes time, and i wouldn't have to loose some precious
time to synch everything by hand, like Emil said.
Could you make some test about that on your side? I think it would reassure us...
Reported by natureh.510
on 2012-01-16 01:43:59
I know that! It's the reason I didn't include commit statistics in my statistics post.
I had three choices - either include statistics on the number of commits per dev, or
the number of commits taking into account the number of lines per commit, or nothing.
I think the best choice was nothing, as we have this unusual policy of getting patches
right before committing them via Google Code, and therefore one person commits the
cumulative work of a few people - no good for statistics.
On my side there were no issues at all. Again, I don't want to cause any extra work
for you. I don't think this consistency "patch" will cause that, and it is low priority
- happy to wait for a better time.
Reported by entertheyoni
on 2012-01-16 01:55:56
I think the appropriate test is not whether there are no issues when you apply your
EOL patch to the current code base, rather the test is whether when you consider an
outstanding patch for some open issue, whether the EOL patch causes the other patch
to fail when it is applied.
Reported by ejm.60657
on 2012-01-16 02:17:23
I think this kind of change should not be committed to the default branch at least until
the merge of the XMP branch, as it would substantially over complicate the merge.
Reported by michaelezra000
on 2012-01-21 16:17:44
Sure, low priority.
Reported by entertheyoni
on 2012-01-21 19:54:38
As michael suggests I add a block on the XMP issue.
Reported by rinni@gmx.net
on 2012-06-20 21:00:24
Let's wait for all major patches to be committed, which AFAIK are now XMP and denoising.
Reported by entertheyoni
on 2012-06-20 23:12:32
Mercurial is able to enforce a chosen kind of line ending style for each file. This
could cause headaches for devs with large uncommitted patches, so I'm putting this
info out here for some possible future time if ever, e.g. after the XMP merge.
You must read the whole file before doing anything: http://mercurial.selenic.com/wiki/EolExtension
The Mercurial folk stressed:
First thing is first: "This is considered a feature of last resort"
Should we choose to enable this extension, every person with commit access should enable
the "eol" extension by adding the following to .hgrc
[extensions]
eol =
[eol]
only-consistent = False
The .hgrc file should be in:
$HOME/.hgrc (Mac/Linux)
%USERPROFILE%\.hgrc (Windows)
Then we should create a .hgeol file in the root. Once this file is committed, the line
ending management takes effect. The .hgeol file should contain:
[patterns]
**.1 = LF
**.bash = LF
**.bat = CRLF
**.bmp = BIN
**.c = LF
**.cc = LF
**.cmake = LF
**.config = LF
**.cpp = LF
**.cs = CRLF
**.dcp = BIN
**.gtkrc = LF
**.h = LF
**.hgignore = native
**.hgtags = native
**.html = CRLF
**.icc = BIN
**.icm = BIN
**.icns = LF
**.ico = BIN
**.iconset = native
**.in = native
**.json = native
**.lin = LF
**.osx = LF
**.patch = LF
**.pdf = BIN
**.png = BIN
**.pp3 = LF
**.rc = native
**.README = LF
**.sh = LF
**.svg = BIN
**.theme = LF
**.txt = LF
**.wav = BIN
**.win = CRLF
**.xcf = BIN
Reported by entertheyoni
on 2013-11-14 01:23:18
If .txt has LF the LICENSE.txt is very bad to read for normal windows-users with notepad.exe.
Actually it has CRLF.
Reported by heckflosse@i-weyrich.de
on 2013-11-14 17:55:14
Reported by entertheyoni
on 2014-03-24 21:16:52
WontFix
Originally reported on Google Code with ID 1205
Reported by
entertheyoni
on 2012-01-14 03:56:48