Patchwork D1061: context: add is `isinmemory()` to filectx

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2017, 4:55 a.m.
Message ID <e7161c3ec0cc71a41af993d043611657@localhost.localdomain>
Download mbox | patch
Permalink /patch/24869/
State Not Applicable
Headers show

Comments

phabricator - Oct. 14, 2017, 4:55 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4dc8a2ee0f4f: context: add is `isinmemory()` to filectx (authored by phillco, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1061?vs=2700&id=2715

REVISION DETAIL
  https://phab.mercurial-scm.org/D1061

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: phillco, #hg-reviewers, quark, durin42
Cc: quark, mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -622,6 +622,9 @@ 
     def hidden(self):
         return self._rev in repoview.filterrevs(self._repo, 'visible')
 
+    def isinmemory(self):
+        return False
+
     def children(self):
         """return contexts for each child changeset"""
         c = self._repo.changelog.children(self._node)
@@ -1401,6 +1404,9 @@ 
     def extra(self):
         return self._extra
 
+    def isinmemory(self):
+        return False
+
     def tags(self):
         return []
 
@@ -1978,6 +1984,9 @@ 
         else:
             return self._wrappedctx[path].data()
 
+    def isinmemory(self):
+        return True
+
     def filedate(self, path):
         if self.isdirty(path):
             return self._cache[path]['date']