Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 33098:eb4c49f55f1f
workingfilectx: add audit() as a wrapper for wvfs.audit()
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Sun, 25 Jun 2017 22:30:14 -0700 |
parents | 1e79c66d6b07 |
children | 634b259079c5 |
comparison
equal
deleted
inserted
replaced
33097:1e79c66d6b07 | 33098:eb4c49f55f1f |
---|---|
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 audit(self): | |
1883 return self._repo.wvfs.audit(self._path) | |
1884 | |
1882 def cmp(self, fctx): | 1885 def cmp(self, fctx): |
1883 """compare with other file context | 1886 """compare with other file context |
1884 | 1887 |
1885 returns True if different than fctx. | 1888 returns True if different than fctx. |
1886 """ | 1889 """ |