subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1494523 - /subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
Date Wed, 19 Jun 2013 09:36:13 GMT
Author: brane
Date: Wed Jun 19 09:36:12 2013
New Revision: 1494523

URL: http://svn.apache.org/r1494523
Log:
On the javahl-ra branch:
Define capabilities in the ISVNRemote interface.

[in subversion/bindings/javahl/src/org/apache/subversion/javahl]
* ISVNRemote.java (ISVNRemote.Capability): New enumeration.

Modified:
    subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java

Modified: subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
URL: http://svn.apache.org/viewvc/subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java?rev=1494523&r1=1494522&r2=1494523&view=diff
==============================================================================
--- subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
(original)
+++ subversion/branches/javahl-ra/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
Wed Jun 19 09:36:12 2013
@@ -130,10 +130,86 @@ public interface ISVNRemote
     Map<String, Lock> getLocks(String path, Depth depth)
             throws ClientException;
 
-
     /**
      * Create a commit editor instance, rooted at the current session URL.
      * @throws SubversionException
      */
     ISVNEditor getCommitEditor() throws ClientException;
+
+    /**
+     * Enumeration of known capabilities of the repository and server.
+     */
+    public enum Capability
+    {
+        /**
+         * The capability of understanding operation depth.
+         * @since 1.5
+         */
+        depth ("depth"),
+
+        /**
+         * The capability of doing the right thing with merge-tracking
+         * information.
+         * @since 1.5
+         */
+        mergeinfo ("mergeinfo"),
+
+        /**
+         * The capability of retrieving arbitrary revprops in #getLog().
+         * @since 1.5
+         */
+        log_revprops ("log-revprops"),
+
+        /**
+         * The capability of replaying a directory in the
+         * repository (partial replay).
+         * @since 1.5
+         */
+        partial_replay ("partial-replay"),
+
+        /**
+         * The capability of including revision properties in a commit.
+         * @since 1.5
+         */
+        commit_revprops ("commit-revprops"),
+
+        /**
+         * The capability of specifying (and atomically verifying) expected
+         * preexisting values when modifying revprops.
+         * @since 1.7
+         */
+        atomic_revprops ("atomic-revprops"),
+
+        /**
+         * The capability to get inherited properties.
+         * @since 1.8
+         */
+        inherited_props ("inherited-props"),
+
+        /**
+         * The capability of a server to automatically ephemeral
+         * transaction properties.
+         * @since 1.8
+         */
+        ephemeral_txnprops ("ephemeral-txnprops"),
+
+        /**
+         * The capability of a server to walk revisions backwards in
+         * #getFileRevisions().
+         * @since 1.8
+         */
+        get_file_revs_reversed ("get-file-revs-reversed");
+
+        private Capability(String token)
+        {
+            this.token = token;
+        }
+
+        public String toString()
+        {
+            return token;
+        }
+
+        private String token;
+    }
 }



Mime
View raw message