Mercurial > hg
comparison hgext/eol.py @ 13611:358924b0abce
eol: explain why reading .hgeol from the working dir is special
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 13 Mar 2011 15:07:44 +0100 |
parents | b30a488762e1 |
children | 21367c3da8aa |
comparison
equal
deleted
inserted
replaced
13609:e035356dbfdc | 13611:358924b0abce |
---|---|
189 | 189 |
190 def readhgeol(self, node=None, data=None): | 190 def readhgeol(self, node=None, data=None): |
191 if data is None: | 191 if data is None: |
192 try: | 192 try: |
193 if node is None: | 193 if node is None: |
194 # Cannot use workingctx.data() since it would load | |
195 # and cache the filters before we configure them. | |
194 data = self.wfile('.hgeol').read() | 196 data = self.wfile('.hgeol').read() |
195 else: | 197 else: |
196 data = self[node]['.hgeol'].data() | 198 data = self[node]['.hgeol'].data() |
197 except (IOError, LookupError): | 199 except (IOError, LookupError): |
198 return None | 200 return None |