Exemple #1
0
def created_rev(svnrepos, full_name, rev):
    kind = ra.svn_ra_check_path(svnrepos.ra_session, full_name, rev,
                                svnrepos.pool)
    if kind == core.svn_node_dir:
        props = ra.svn_ra_get_dir(svnrepos.ra_session, full_name, rev,
                                  svnrepos.pool)
        return int(props[core.SVN_PROP_ENTRY_COMMITTED_REV])
    return core.SVN_INVALID_REVNUM
Exemple #2
0
def created_rev(svnrepos, full_name, rev):
  kind = ra.svn_ra_check_path(svnrepos.ra_session, full_name, rev,
                              svnrepos.pool)
  if kind == core.svn_node_dir:
    props = ra.svn_ra_get_dir(svnrepos.ra_session, full_name,
                              rev, svnrepos.pool)
    return int(props[core.SVN_PROP_ENTRY_COMMITTED_REV])
  return core.SVN_INVALID_REVNUM
def get_directory_props(ra_session, path, rev):
  try:
    dirents, fetched_rev, props = ra.svn_ra_get_dir(ra_session, path, rev)
  except ValueError: # older bindings are goofed
    props = ra.svn_ra_get_dir(ra_session, path, rev)
  return props
Exemple #4
0
def get_directory_props(ra_session, path, rev):
    try:
        dirents, fetched_rev, props = ra.svn_ra_get_dir(ra_session, path, rev)
    except ValueError:  # older bindings are goofed
        props = ra.svn_ra_get_dir(ra_session, path, rev)
    return props