comparison mercurial/context.py @ 35322:baf58e621363

overlayworkingctx: add a no-op ``clearunknown()`` We no longer inherit ``workingctx``'s version, but we also don't need to do anything anymore. Differential Revision: https://phab.mercurial-scm.org/D1239
author Phil Cohen <phillco@fb.com>
date Thu, 07 Dec 2017 16:07:06 -0800
parents 2e1c32a9c97b
children 8e1386b342f7
comparison
equal deleted inserted replaced
35321:2e1c32a9c97b 35322:baf58e621363
2215 return self._parent.write(self._path, data, flags) 2215 return self._parent.write(self._path, data, flags)
2216 2216
2217 def remove(self, ignoremissing=False): 2217 def remove(self, ignoremissing=False):
2218 return self._parent.remove(self._path) 2218 return self._parent.remove(self._path)
2219 2219
2220 def clearunknown(self):
2221 pass
2222
2220 class workingcommitctx(workingctx): 2223 class workingcommitctx(workingctx):
2221 """A workingcommitctx object makes access to data related to 2224 """A workingcommitctx object makes access to data related to
2222 the revision being committed convenient. 2225 the revision being committed convenient.
2223 2226
2224 This hides changes in the working directory, if they aren't 2227 This hides changes in the working directory, if they aren't