Mercurial > hg
diff hgext/eol.py @ 43207:4aa9f3a1c1df
eol: don't fallback to use .hgeol from tip (BC)
If no .hgeol were found in the current working directory, eol would fallback to
use the one in tip. That could in some cases give very confusing or wrong
behaviour when it applied wrong filters.
It might be convenient to have plain 'clone' immediately apply 'native'
encoding patterns in the cloned repo. But it is wrong to assume that this
revision is tip, and even more wrong to also apply it when not cloning - for
example when updating between history revisions. The encoding should always
match the content of the current .hgeol . It should never use anything else.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 13 Oct 2019 02:10:26 +0200 |
parents | dfaa477e37a8 |
children | 9d2b2df2c2ba |
line wrap: on
line diff
--- a/hgext/eol.py Mon Oct 14 01:42:24 2019 +0200 +++ b/hgext/eol.py Sun Oct 13 02:10:26 2019 +0200 @@ -387,7 +387,7 @@ return eol.match def _hgcleardirstate(self): - self._eolmatch = self.loadeol([None, b'tip']) + self._eolmatch = self.loadeol([None]) if not self._eolmatch: self._eolmatch = util.never return