##// END OF EJS Templates
manifest: remove optional default= argument on flags(path)...
Augie Fackler -
r44725:dbbae122 default
parent child Browse files
Show More
@@ -1027,8 +1027,8 b' class imanifestdict(interfaceutil.Interf'
1027 def get(path, default=None):
1027 def get(path, default=None):
1028 """Obtain the node value for a path or a default value if missing."""
1028 """Obtain the node value for a path or a default value if missing."""
1029
1029
1030 def flags(path, default=b''):
1030 def flags(path):
1031 """Return the flags value for a path or a default value if missing."""
1031 """Return the flags value for a path (default: empty bytestring)."""
1032
1032
1033 def copy():
1033 def copy():
1034 """Return a copy of this manifest."""
1034 """Return a copy of this manifest."""
@@ -460,7 +460,7 b' class manifestdict(object):'
460 __bool__ = __nonzero__
460 __bool__ = __nonzero__
461
461
462 def __setitem__(self, key, node):
462 def __setitem__(self, key, node):
463 self._lm[key] = node, self.flags(key, b'')
463 self._lm[key] = node, self.flags(key)
464
464
465 def __contains__(self, key):
465 def __contains__(self, key):
466 if key is None:
466 if key is None:
@@ -595,11 +595,11 b' class manifestdict(object):'
595 except KeyError:
595 except KeyError:
596 return default
596 return default
597
597
598 def flags(self, key, default=b''):
598 def flags(self, key):
599 try:
599 try:
600 return self._lm[key][1]
600 return self._lm[key][1]
601 except KeyError:
601 except KeyError:
602 return default
602 return b''
603
603
604 def copy(self):
604 def copy(self):
605 c = manifestdict()
605 c = manifestdict()
General Comments 0
You need to be logged in to leave comments. Login now