comparison mercurial/context.py @ 33283:634b259079c5

workingfilectx: add exists, lexists Switch the lone call in merge.py to use it. As with past refactors, the goal is to make wctx hot-swappable with an in-memory context in the future. This change should be a no-op today.
author Phil Cohen <phillco@fb.com>
date Tue, 04 Jul 2017 22:35:52 -0700
parents eb4c49f55f1f
children 160efb559f67
comparison
equal deleted inserted replaced
33282:d1db7af81548 33283:634b259079c5
1877 except OSError as err: 1877 except OSError as err:
1878 if err.errno != errno.ENOENT: 1878 if err.errno != errno.ENOENT:
1879 raise 1879 raise
1880 return (t, tz) 1880 return (t, tz)
1881 1881
1882 def exists(self):
1883 return self._repo.wvfs.exists(self._path)
1884
1885 def lexists(self):
1886 return self._repo.wvfs.lexists(self._path)
1887
1882 def audit(self): 1888 def audit(self):
1883 return self._repo.wvfs.audit(self._path) 1889 return self._repo.wvfs.audit(self._path)
1884 1890
1885 def cmp(self, fctx): 1891 def cmp(self, fctx):
1886 """compare with other file context 1892 """compare with other file context