~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/bindings/ctypes-python/csvn/repos.py

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        return self._as_parameter_
68
68
 
69
69
class RemoteRepository(object):
 
70
    """This class represents a connection from the client to a remote
 
71
       Subversion repository."""
 
72
    # The interface corresponds roughly to the svn_ra API, and an object of
 
73
    # this type basically represents the C type 'svn_ra_session_t'.
70
74
 
71
75
    def __init__(self, url, user=None):
72
76
        """Open a new session to URL with the specified USER.
150
154
        svn_ra_get_dir2(self, dirents.byref(), NULL, NULL, path,
151
155
                        rev, fields, dirents.pool)
152
156
        self.iterpool.clear()
153
 
        return dirents
 
157
        # Create a Python dict of svn_dirent_t objects from this Hash of
 
158
        # pointers to svn_dirent_t.
 
159
        result = {}
 
160
        for path, dirent_p in dirents.items():
 
161
            result[path] = dirent_p[0]
 
162
        return result
154
163
 
155
164
    def cat(self, buffer, path, rev = SVN_INVALID_REVNUM):
156
165
        """Get PATH@REV and save it to BUFFER. BUFFER must be a Python file
174
183
            rev = self.latest_revnum()
175
184
        svn_ra_stat(self, path, rev, byref(dirent), dirent.pool)
176
185
        self.iterpool.clear()
177
 
        return dirent
 
186
        return dirent[0]
178
187
 
179
188
    def proplist(self, path, rev = SVN_INVALID_REVNUM):
180
189
        """Return a dictionary containing the properties on PATH@REV