mercurial/vfs.py
branchstable
changeset 53041 46603c00a9f2
parent 52930 22e264ac7f60
equal deleted inserted replaced
53040:25079cc2016f 53041:46603c00a9f2
   474         return (path, mode)::
   474         return (path, mode)::
   475 
   475 
   476             <path> is the real file system path content should be written to,
   476             <path> is the real file system path content should be written to,
   477             <mode> is the file mode that need to be set if any.
   477             <mode> is the file mode that need to be set if any.
   478         """
   478         """
   479         self._auditpath(path, b'wb')
   479         real_path = self.join(path)
       
   480         self._auditpath(real_path, b'wb')
   480         self.register_file(path)
   481         self.register_file(path)
   481         real_path = self.join(path)
       
   482         dirname, basename = util.split(real_path)
   482         dirname, basename = util.split(real_path)
   483         if dirname not in known_directories:
   483         if dirname not in known_directories:
   484             util.makedirs(dirname, self.createmode, True)
   484             util.makedirs(dirname, self.createmode, True)
   485             known_directories.add(dirname)
   485             known_directories.add(dirname)
   486         mode = None
   486         mode = None