comparison hgext/lfs/wrapper.py @ 35799:b91bca85ba73 stable

lfs: don't automatically exclude '.hg*' files from external tracking The only reasons I did this in the first place was because tracking externally seems like it would always be a mistake, and the eol extension does the same thing. Yuya and Jun thought it might be better to not do this[1], so I'll defer to them on this. If a problem with say, .hgtags or .hgeol does arise, it can be added back without breaking existing repos. [1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2018-January/110371.html
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 23 Jan 2018 21:29:45 -0500
parents a985834961f7
children 47e737d27e01
comparison
equal deleted inserted replaced
35798:97bdbcb43ebf 35799:b91bca85ba73
129 if offset: 129 if offset:
130 textlen -= offset 130 textlen -= offset
131 131
132 lfstrack = self.opener.options['lfstrack'] 132 lfstrack = self.opener.options['lfstrack']
133 133
134 # Always exclude hg owned files 134 if lfstrack(self.filename, textlen):
135 if not self.filename.startswith('.hg') and lfstrack(self.filename, textlen):
136 flags |= revlog.REVIDX_EXTSTORED 135 flags |= revlog.REVIDX_EXTSTORED
137 136
138 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta, 137 return orig(self, text, transaction, link, p1, p2, cachedelta=cachedelta,
139 node=node, flags=flags, **kwds) 138 node=node, flags=flags, **kwds)
140 139