mercurial/manifest.py
changeset 24467 bfb754050ccd
parent 24448 55c449345b10
child 24495 d2a3a2808974
equal deleted inserted replaced
24466:f310ca66a704 24467:bfb754050ccd
   445         if dir:
   445         if dir:
   446             if dir not in self._dirs:
   446             if dir not in self._dirs:
   447                 self._dirs[dir] = treemanifest(self._subpath(dir))
   447                 self._dirs[dir] = treemanifest(self._subpath(dir))
   448             self._dirs[dir].__setitem__(subpath, n)
   448             self._dirs[dir].__setitem__(subpath, n)
   449         else:
   449         else:
   450             self._files[f] = n
   450             self._files[f] = n[:21] # to match manifestdict's behavior
   451 
   451 
   452     def setflag(self, f, flags):
   452     def setflag(self, f, flags):
   453         """Set the flags (symlink, executable) for path f."""
   453         """Set the flags (symlink, executable) for path f."""
   454         dir, subpath = _splittopdir(f)
   454         dir, subpath = _splittopdir(f)
   455         if dir:
   455         if dir: