Show More
@@ -187,17 +187,16 b' def reposetup(ui, repo):' | |||||
187 | _decode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} |
|
187 | _decode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} | |
188 | _encode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} |
|
188 | _encode = {'LF': 'to-lf', 'CRLF': 'to-crlf', 'BIN': 'is-binary'} | |
189 |
|
189 | |||
190 |
def readhgeol(self, node=None |
|
190 | def readhgeol(self, node=None): | |
191 |
|
|
191 | try: | |
192 |
|
|
192 | if node is None: | |
193 | if node is None: |
|
193 | # Cannot use workingctx.data() since it would load | |
194 | # Cannot use workingctx.data() since it would load |
|
194 | # and cache the filters before we configure them. | |
195 | # and cache the filters before we configure them. |
|
195 | data = self.wfile('.hgeol').read() | |
196 | data = self.wfile('.hgeol').read() |
|
196 | else: | |
197 | else: |
|
197 | data = self[node]['.hgeol'].data() | |
198 | data = self[node]['.hgeol'].data() |
|
198 | except (IOError, LookupError): | |
199 | except (IOError, LookupError): |
|
199 | return None | |
200 | return None |
|
|||
201 |
|
200 | |||
202 | if self.ui.config('eol', 'native', os.linesep) in ('LF', '\n'): |
|
201 | if self.ui.config('eol', 'native', os.linesep) in ('LF', '\n'): | |
203 | self._decode['NATIVE'] = 'to-lf' |
|
202 | self._decode['NATIVE'] = 'to-lf' |
General Comments 0
You need to be logged in to leave comments.
Login now