mercurial/manifest.py
changeset 23758 399a8403cb54
parent 23756 829f640b5540
child 24033 ed5e8a9598ce
equal deleted inserted replaced
23757:b5346480a490 23758:399a8403cb54
    20     def __setitem__(self, k, v):
    20     def __setitem__(self, k, v):
    21         assert v is not None
    21         assert v is not None
    22         dict.__setitem__(self, k, v)
    22         dict.__setitem__(self, k, v)
    23     def flags(self, f):
    23     def flags(self, f):
    24         return self._flags.get(f, "")
    24         return self._flags.get(f, "")
    25     def withflags(self):
       
    26         return set(self._flags.keys())
       
    27     def setflag(self, f, flags):
    25     def setflag(self, f, flags):
    28         """Set the flags (symlink, executable) for path f."""
    26         """Set the flags (symlink, executable) for path f."""
    29         self._flags[f] = flags
    27         self._flags[f] = flags
    30     def copy(self):
    28     def copy(self):
    31         return manifestdict(self, dict.copy(self._flags))
    29         return manifestdict(self, dict.copy(self._flags))