code: def mode(self):
          
          if self.changeset:
              mode = self.changeset.get_file_mode(self.path)
          else:
              mode = self._mode
          return mode
docs: Returns lazily mode of the FileNode. If ``changeset`` is not set, would
          use value given at initialization or 0100644 (default).