##// END OF EJS Templates
manifest: remove `.new()` from the interface...
Augie Fackler -
r44734:c86256bd default
parent child Browse files
Show More
@@ -1071,14 +1071,6 b' class imanifestrevisionbase(interfaceuti'
1071 as part of a larger interface.
1071 as part of a larger interface.
1072 """
1072 """
1073
1073
1074 def new():
1075 """Obtain a new manifest instance.
1076
1077 Returns an object conforming to the ``imanifestrevisionwritable``
1078 interface. The instance will be associated with the same
1079 ``imanifestlog`` collection as this instance.
1080 """
1081
1082 def copy():
1074 def copy():
1083 """Obtain a copy of this manifest instance.
1075 """Obtain a copy of this manifest instance.
1084
1076
@@ -1921,9 +1921,6 b' class memmanifestctx(object):'
1921 def _storage(self):
1921 def _storage(self):
1922 return self._manifestlog.getstorage(b'')
1922 return self._manifestlog.getstorage(b'')
1923
1923
1924 def new(self):
1925 return memmanifestctx(self._manifestlog)
1926
1927 def copy(self):
1924 def copy(self):
1928 memmf = memmanifestctx(self._manifestlog)
1925 memmf = memmanifestctx(self._manifestlog)
1929 memmf._manifestdict = self.read().copy()
1926 memmf._manifestdict = self.read().copy()
@@ -1970,9 +1967,6 b' class manifestctx(object):'
1970 def node(self):
1967 def node(self):
1971 return self._node
1968 return self._node
1972
1969
1973 def new(self):
1974 return memmanifestctx(self._manifestlog)
1975
1976 def copy(self):
1970 def copy(self):
1977 memmf = memmanifestctx(self._manifestlog)
1971 memmf = memmanifestctx(self._manifestlog)
1978 memmf._manifestdict = self.read().copy()
1972 memmf._manifestdict = self.read().copy()
@@ -2037,9 +2031,6 b' class memtreemanifestctx(object):'
2037 def _storage(self):
2031 def _storage(self):
2038 return self._manifestlog.getstorage(b'')
2032 return self._manifestlog.getstorage(b'')
2039
2033
2040 def new(self, dir=b''):
2041 return memtreemanifestctx(self._manifestlog, dir=dir)
2042
2043 def copy(self):
2034 def copy(self):
2044 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2035 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2045 memmf._treemanifest = self._treemanifest.copy()
2036 memmf._treemanifest = self._treemanifest.copy()
@@ -2122,9 +2113,6 b' class treemanifestctx(object):'
2122 def node(self):
2113 def node(self):
2123 return self._node
2114 return self._node
2124
2115
2125 def new(self, dir=b''):
2126 return memtreemanifestctx(self._manifestlog, dir=dir)
2127
2128 def copy(self):
2116 def copy(self):
2129 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2117 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2130 memmf._treemanifest = self.read().copy()
2118 memmf._treemanifest = self.read().copy()
@@ -252,7 +252,6 b' def main():'
252 checkzobject(mctx)
252 checkzobject(mctx)
253
253
254 # Conforms to imanifestrevisionwritable.
254 # Conforms to imanifestrevisionwritable.
255 checkzobject(mctx.new())
256 checkzobject(mctx.copy())
255 checkzobject(mctx.copy())
257
256
258 # Conforms to imanifestdict.
257 # Conforms to imanifestdict.
General Comments 0
You need to be logged in to leave comments. Login now