Logo Search packages:      
Sourcecode: hgsubversion version File versions  Download package

def hgsubversion::svnwrap::svn_swig_wrapper::SubversionRepo::list_dir (   self,
  dir,
  revision = None 
)
List the contents of a server-side directory.

Returns a dict-like object with one dict key per directory entry.

Args:
  dir: the directory to list, no leading slash
  rev: the revision at which to list the directory, defaults to HEAD

Definition at line 250 of file svn_swig_wrapper.py.

                                          :
        """List the contents of a server-side directory.

        Returns a dict-like object with one dict key per directory entry.

        Args:
          dir: the directory to list, no leading slash
          rev: the revision at which to list the directory, defaults to HEAD
        """
        # TODO this should just not accept leading slashes like the docstring says
        if dir and dir[-1] == '/':
            dir = dir[:-1]
        if revision is None:
            revision = self.HEAD
        r = ra.get_dir2(self.ra, dir, revision, core.SVN_DIRENT_KIND, self.pool)
        folders, props, junk = r
        return folders


Generated by  Doxygen 1.6.0   Back to index