equal
deleted
inserted
replaced
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)) |