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