You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/04/27 23:30:43 UTC
svn commit: r1476675 [2/17] - in /subversion/branches/fsfs-format7: ./
build/ build/ac-macros/ build/generator/ build/generator/templates/
contrib/hook-scripts/ contrib/server-side/svncutter/
subversion/bindings/cxxhl/include/ subversion/bindings/cxxhl...
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ClientNotifyInformation.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ClientNotifyInformation.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ClientNotifyInformation.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ClientNotifyInformation.java Sat Apr 27 21:30:36 2013
@@ -559,7 +559,15 @@ public class ClientNotifyInformation ext
conflict_resolver_done ("conflict resolver done"),
/** Operation left local modifications. */
- left_local_modifications ("left local modifications");
+ left_local_modifications ("left local modifications"),
+
+ /** A copy from a foreign repository has started
+ * @since New in 1.8. */
+ foreign_copy_begin ("foreign copy begin"),
+
+ /** A move in the working copy has been broken
+ * @since New in 1.8. */
+ move_broken ("move broken");
/**
* The description of the action.
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItem.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItem.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItem.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItem.java Sat Apr 27 21:30:36 2013
@@ -70,6 +70,11 @@ public class CommitItem implements java.
long revision;
/**
+ * the source of the move
+ */
+ String movedFromPath;
+
+ /**
* This constructor will be only called from the jni code.
* @param p path to the commit item
* @param nk kind of node (see NodeKind)
@@ -77,8 +82,9 @@ public class CommitItem implements java.
* @param u url of the item
* @param cu copy source url
* @param r revision number
+ * @param mf move source abspath
*/
- public CommitItem(String p, NodeKind nk, int sf, String u, String cu, long r)
+ CommitItem(String p, NodeKind nk, int sf, String u, String cu, long r, String mf)
{
path = p;
nodeKind = nk;
@@ -86,6 +92,7 @@ public class CommitItem implements java.
url = u;
copyUrl = cu;
revision = r;
+ movedFromPath = mf;
}
/**
@@ -149,4 +156,13 @@ public class CommitItem implements java.
{
return revision;
}
+
+ /**
+ * @return the absolute path of the source of a move.
+ * @since 1.8
+ */
+ public String getMovedFromPath()
+ {
+ return movedFromPath;
+ }
}
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItemStateFlags.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItemStateFlags.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItemStateFlags.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/CommitItemStateFlags.java Sat Apr 27 21:30:36 2013
@@ -53,4 +53,15 @@ public interface CommitItemStateFlags
* the item has been copied
*/
public static final int IsCopy=16;
+
+ /**
+ * the item has a lock token
+ */
+ public static final int LockToken = 32;
+
+ /**
+ * the item was moved to this location
+ * @since 1.8
+ */
+ public static int MovedHere = 64;
}
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNClient.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNClient.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNClient.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNClient.java Sat Apr 27 21:30:36 2013
@@ -498,10 +498,35 @@ public interface ISVNClient
* @param localPath target local path
* @param force overwrite local changes
* @param depth how deep to traverse into subdirectories
+ * @param ignoreMergeinfo ignore merge history, treat sources as unrelated
+ * @param diffIgnoreAncestry always treat source files as related
+ * @param dryRun do not change anything
+ * @param recordOnly record mergeinfo but do not run merge
+ * @throws ClientException
+ * @since 1.8
+ */
+ void merge(String path1, Revision revision1, String path2,
+ Revision revision2, String localPath, boolean force, Depth depth,
+ boolean ignoreMergeinfo, boolean diffIgnoreAncestry,
+ boolean dryRun, boolean recordOnly)
+ throws ClientException;
+
+ /**
+ * Merge changes from two paths into a new local path.
+ *
+ * @param path1 first path or url
+ * @param revision1 first revision
+ * @param path2 second path or url
+ * @param revision2 second revision
+ * @param localPath target local path
+ * @param force overwrite local changes
+ * @param depth how deep to traverse into subdirectories
* @param ignoreAncestry ignore if files are not related
* @param dryRun do not change anything
* @param recordOnly record mergeinfo but do not run merge
* @throws ClientException
+ * @note Behaves like the 1.8 where ignoreAncestry maps to
+ * both ignoreMergeinfo and diffIgnoreAncestry
*/
void merge(String path1, Revision revision1, String path2,
Revision revision2, String localPath, boolean force, Depth depth,
@@ -512,7 +537,31 @@ public interface ISVNClient
* Merge set of revisions into a new local path.
* @param path path or url
* @param pegRevision revision to interpret path
- * @param revisions revisions to merge
+ * @param revisions revisions to merge; may be null, indicating that
+ * the optimal range should be determined automatcially
+ * @param localPath target local path
+ * @param force overwrite local changes
+ * @param depth how deep to traverse into subdirectories
+ * @param ignoreMergeinfo ignore merge history, treat sources as unrelated
+ * @param diffIgnoreAncestry always treat source files as related
+ * @param dryRun do not change anything
+ * @param recordOnly record mergeinfo but do not run merge
+ * @throws ClientException
+ * @since 1.8
+ */
+ void merge(String path, Revision pegRevision, List<RevisionRange> revisions,
+ String localPath, boolean force, Depth depth,
+ boolean ignoreMergeinfo, boolean diffIgnoreAncestry,
+ boolean dryRun, boolean recordOnly)
+ throws ClientException;
+
+ /**
+ * Merge set of revisions into a new local path.
+ * @param path path or url
+ * @param pegRevision revision to interpret path
+ * @param revisions revisions to merge;
+ * may be null, indicating that the optimal range
+ * should be determined automatcially (new in 1.8)
* @param localPath target local path
* @param force overwrite local changes
* @param depth how deep to traverse into subdirectories
@@ -520,6 +569,8 @@ public interface ISVNClient
* @param dryRun do not change anything
* @param recordOnly record mergeinfo but do not run merge
* @throws ClientException
+ * @note Behaves like the 1.8 where ignoreAncestry maps to
+ * both ignoreMergeinfo and diffIgnoreAncestry
*/
void merge(String path, Revision pegRevision, List<RevisionRange> revisions,
String localPath, boolean force, Depth depth,
@@ -541,6 +592,7 @@ public interface ISVNClient
* @param localPath target local path
* @param dryRun do not change anything
* @throws ClientException
+ * @deprecated Will be removed in a future release
*/
void mergeReintegrate(String path, Revision pegRevision,
String localPath, boolean dryRun)
@@ -564,10 +616,35 @@ public interface ISVNClient
* @param pegRevision peg rev for pathOrUrl
* @param mergeSourceUrl the source of the merge
* @param srcPegRevision peg rev for mergeSourceUrl
+ * @param srcStartRevieion lower bound of the source revision range
+ * @param srcEndRevision upper bound of the source revision range
+ * @param discoverChangedPaths return paths of changed items
+ * @param depth the depth to recurse to
+ * @param revProps the revprops to retrieve
+ * @param callback the object to receive the log messages
+ * @since 1.8
+ */
+ void getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl,
+ Revision pegRevision, String mergeSourceUrl,
+ Revision srcPegRevision,
+ Revision srcStartRevision, Revision srcEndRevision,
+ boolean discoverChangedPaths,
+ Depth depth, Set<String> revProps,
+ LogMessageCallback callback)
+ throws ClientException;
+
+ /**
+ * Retrieve either merged or eligible-to-be-merged revisions.
+ * @param kind kind of revisions to receive
+ * @param pathOrUrl target of merge
+ * @param pegRevision peg rev for pathOrUrl
+ * @param mergeSourceUrl the source of the merge
+ * @param srcPegRevision peg rev for mergeSourceUrl
* @param discoverChangedPaths return paths of changed items
* @param depth the depth to recurse to
* @param revProps the revprops to retrieve
* @param callback the object to receive the log messages
+ * @note Behaves like the 1.8 version, with unspecified revision range.
*/
void getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl,
Revision pegRevision, String mergeSourceUrl,
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNClient.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNClient.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNClient.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/SVNClient.java Sat Apr 27 21:30:36 2013
@@ -212,6 +212,7 @@ public class SVNClient implements ISVNCl
CommitMessageCallback handler, CommitCallback callback)
throws ClientException;
+ /** @deprecated */
public void move(Set<String> srcPaths, String destPath,
boolean force, boolean moveAsChild,
boolean makeParents,
@@ -275,16 +276,40 @@ public class SVNClient implements ISVNCl
public native void merge(String path1, Revision revision1, String path2,
Revision revision2, String localPath,
boolean force, Depth depth,
+ boolean ignoreMergeinfo, boolean diffIgnoreAncestry,
+ boolean dryRun, boolean recordOnly)
+ throws ClientException;
+
+ public void merge(String path1, Revision revision1, String path2,
+ Revision revision2, String localPath,
+ boolean force, Depth depth,
boolean ignoreAncestry, boolean dryRun,
boolean recordOnly)
- throws ClientException;
+ throws ClientException
+ {
+ merge(path1, revision1, path2, revision2, localPath, force, depth,
+ ignoreAncestry, ignoreAncestry, dryRun, recordOnly);
+ }
public native void merge(String path, Revision pegRevision,
List<RevisionRange> revisions, String localPath,
- boolean force, Depth depth, boolean ignoreAncestry,
+ boolean force, Depth depth,
+ boolean ignoreMergeinfo, boolean diffIgnoreAncestry,
boolean dryRun, boolean recordOnly)
throws ClientException;
+ public void merge(String path, Revision pegRevision,
+ List<RevisionRange> revisions, String localPath,
+ boolean force, Depth depth, boolean ignoreAncestry,
+ boolean dryRun, boolean recordOnly)
+ throws ClientException
+ {
+ merge(path, pegRevision, revisions, localPath, force, depth,
+ ignoreAncestry, ignoreAncestry, dryRun, recordOnly);
+ }
+
+
+ /** @deprecated */
public native void mergeReintegrate(String path, Revision pegRevision,
String localPath, boolean dryRun)
throws ClientException;
@@ -296,11 +321,28 @@ public class SVNClient implements ISVNCl
Revision pegRevision,
String mergeSourceUrl,
Revision srcPegRevision,
+ Revision srcStartRevision,
+ Revision srcEndRevision,
boolean discoverChangedPaths, Depth depth,
Set<String> revProps,
LogMessageCallback callback)
throws ClientException;
+ public void getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl,
+ Revision pegRevision,
+ String mergeSourceUrl,
+ Revision srcPegRevision,
+ boolean discoverChangedPaths, Depth depth,
+ Set<String> revProps,
+ LogMessageCallback callback)
+ throws ClientException
+ {
+ Revision unspecified = new Revision(Revision.Kind.unspecified);
+ getMergeinfoLog(kind, pathOrUrl, pegRevision, mergeSourceUrl,
+ srcPegRevision, unspecified, unspecified,
+ discoverChangedPaths, depth, revProps, callback);
+ }
+
public void diff(String target1, Revision revision1, String target2,
Revision revision2, String relativeToDir,
String outFileName, Depth depth,
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/ConflictVersion.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/ConflictVersion.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/ConflictVersion.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/ConflictVersion.java Sat Apr 27 21:30:36 2013
@@ -31,16 +31,19 @@ package org.apache.subversion.javahl.typ
public class ConflictVersion
{
private String reposURL;
+ private String reposUUID;
private long pegRevision;
private String pathInRepos;
private NodeKind nodeKind;
/** This constructor should only be called from JNI code. */
- public ConflictVersion(String reposURL, long pegRevision, String pathInRepos,
+ ConflictVersion(String reposURL, String reposUUID,
+ long pegRevision, String pathInRepos,
NodeKind nodeKind)
{
this.reposURL = reposURL;
+ this.reposUUID = reposUUID;
this.pegRevision = pegRevision;
this.pathInRepos = pathInRepos;
this.nodeKind = nodeKind;
@@ -51,6 +54,12 @@ public class ConflictVersion
return reposURL;
}
+ /** @since 1.8 */
+ public String getReposUUID()
+ {
+ return reposUUID;
+ }
+
public long getPegRevision()
{
return pegRevision;
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/LogDate.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/LogDate.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/LogDate.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/apache/subversion/javahl/types/LogDate.java Sat Apr 27 21:30:36 2013
@@ -51,7 +51,11 @@ public class LogDate implements java.io.
{
throw new ParseException("String is not a valid Subversion date", 0);
}
- Date date = formatter.parse(datestr.substring(0, 23) + " UTC");
+ Date date;
+ synchronized(formatter)
+ {
+ date = formatter.parse(datestr.substring(0, 23) + " UTC");
+ }
this.cachedString = datestr;
cachedDate = Calendar.getInstance(UTC);
cachedDate.setTime(date);
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/src/org/tigris/subversion/javahl/LogDate.java Sat Apr 27 21:30:36 2013
@@ -53,7 +53,11 @@ public class LogDate implements java.io.
{
throw new ParseException("String is not a valid Subversion date", 0);
}
- Date date = formatter.parse(datestr.substring(0, 23) + " UTC");
+ Date date;
+ synchronized(formatter)
+ {
+ date = formatter.parse(datestr.substring(0, 23) + " UTC");
+ }
this.cachedString = datestr;
cachedDate = Calendar.getInstance(UTC);
cachedDate.setTime(date);
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java Sat Apr 27 21:30:36 2013
@@ -2536,6 +2536,43 @@ public class BasicTests extends SVNTests
}
/**
+ * Test merge with automatic source and revision determination
+ * (e.g. 'svn merge -g) with implied revision range.
+ * @throws Throwable
+ * @since 1.8
+ */
+ public void testMergeUsingHistoryImpliedRange() throws Throwable
+ {
+ OneTest thisTest = setupAndPerformMerge();
+
+ // Test that getMergeinfo() returns null.
+ assertNull(client.getMergeinfo(new File(thisTest.getWCPath(), "A")
+ .toString(), Revision.HEAD));
+
+ // Merge and commit some changes (r4).
+ appendText(thisTest, "A/mu", "xxx", 4);
+ checkCommitRevision(thisTest, "wrong revision number from commit", 4,
+ thisTest.getWCPathSet(), "log msg", Depth.infinity,
+ false, false, null, null);
+
+ String branchPath = thisTest.getWCPath() + "/branches/A";
+ String modUrl = thisTest.getUrl() + "/A";
+ client.merge(modUrl, Revision.HEAD, null,
+ branchPath, true, Depth.infinity, false, false, false);
+
+ // commit the changes so that we can verify merge
+ addExpectedCommitItem(thisTest.getWCPath(), thisTest.getUrl().toString(),
+ "branches/A", NodeKind.dir,
+ CommitItemStateFlags.PropMods);
+ addExpectedCommitItem(thisTest.getWCPath(), thisTest.getUrl().toString(),
+ "branches/A/mu", NodeKind.file,
+ CommitItemStateFlags.TextMods);
+ checkCommitRevision(thisTest, "wrong revision number from commit", 5,
+ thisTest.getWCPathSet(), "log msg", Depth.infinity,
+ false, false, null, null);
+ }
+
+ /**
* Test reintegrating a branch with trunk
* (e.g. 'svn merge --reintegrate').
* @throws Throwable
@@ -3371,6 +3408,7 @@ public class BasicTests extends SVNTests
ConflictDescriptor conflict = conflicts.iterator().next();
assertNotNull("Conflict should not be null", conflict);
+ assertNotNull("Repository UUID must be set", conflict.getSrcLeftVersion().getReposUUID());
assertEquals(conflict.getSrcLeftVersion().getNodeKind(), NodeKind.file);
assertEquals(conflict.getSrcLeftVersion().getReposURL() + "/" +
@@ -3379,6 +3417,8 @@ public class BasicTests extends SVNTests
if (conflict.getSrcRightVersion() != null)
{
+ assertEquals(conflict.getSrcLeftVersion().getReposUUID(),
+ conflict.getSrcRightVersion().getReposUUID());
assertEquals(conflict.getSrcRightVersion().getNodeKind(), NodeKind.none);
assertEquals(conflict.getSrcRightVersion().getReposURL(), tcTest.getUrl().toString());
assertEquals(conflict.getSrcRightVersion().getPegRevision(), 2L);
Modified: subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNTests.java
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNTests.java?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNTests.java (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNTests.java Sat Apr 27 21:30:36 2013
@@ -148,12 +148,12 @@ class SVNTests extends TestCase
* Username to use in tests
*/
protected final static String USERNAME = "jrandom";
-
+
/**
* Password to use in tests
*/
protected final static String PASSWORD = "rayjandom";
-
+
/**
* Create a JUnit <code>TestCase</code> instance.
*/
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/core.i
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/core.i?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/core.i (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/core.i Sat Apr 27 21:30:36 2013
@@ -251,6 +251,30 @@
%ignore svn_opt_args_to_target_array;
+/* svn_cmdline.h */
+%ignore svn_cmdline_auth_plaintext_passphrase_prompt;
+%ignore svn_cmdline_auth_plaintext_prompt;
+%ignore svn_cmdline_auth_simple_prompt;
+%ignore svn_cmdline_auth_ssl_client_cert_prompt;
+%ignore svn_cmdline_auth_ssl_client_cert_pw_prompt;
+%ignore svn_cmdline_auth_ssl_server_trust_prompt;
+%ignore svn_cmdline_auth_username_prompt;
+%ignore svn_cmdline_cstring_from_utf8;
+%ignore svn_cmdline_cstring_from_utf8_fuzzy;
+%ignore svn_cmdline_cstring_to_utf8;
+%ignore svn_cmdline_fflush;
+%ignore svn_cmdline_fprintf;
+%ignore svn_cmdline_fputs;
+%ignore svn_cmdline_handle_exit_error;
+%ignore svn_cmdline_output_encoding;
+%ignore svn_cmdline_path_local_style_from_utf8;
+%ignore svn_cmdline_printf;
+%ignore svn_cmdline_prompt_baton2_t;
+%ignore svn_cmdline_prompt_baton_t;
+%ignore svn_cmdline_prompt_user2;
+%ignore svn_cmdline_prompt_user;
+%ignore svn_cmdline_setup_auth_baton;
+
/* Ugliness because the constants are typedefed and SWIG ignores them
as a result. */
%constant svn_revnum_t SWIG_SVN_INVALID_REVNUM = -1;
@@ -331,19 +355,22 @@
};
#endif
-
/* -----------------------------------------------------------------------
- handle the default value of svn_config_get().and the
- config directory of svn_config_read_auth_data() and
- svn_config_write_auth_data().
+ allowable null values
*/
%apply const char *MAY_BE_NULL {
+ /* svn_config_get */
const char *default_value,
- const char *config_dir,
+ /* svn_config_read_auth_data */
+ const char *config_dir,
+ /* svn_diff_file_output_merge */
const char *conflict_original,
const char *conflict_modified,
const char *conflict_latest,
- const char *conflict_separator
+ const char *conflict_separator,
+ /* svn_cmdline_create_auth_baton */
+ const char *username,
+ const char *password
};
/* -----------------------------------------------------------------------
@@ -705,6 +732,15 @@ svn_swig_pl_set_current_pool (apr_pool_t
%authprompt_callback_typemap(ssl_client_cert_pw)
%authprompt_callback_typemap(gnome_keyring_unlock)
+#ifdef SWIGPYTHON
+/* pl and rb aren't yet implemented */
+%callback_typemap_maybenull(svn_config_auth_walk_func_t walk_func,
+ void *walk_baton,
+ svn_swig_py_config_auth_walk_func,
+ svn_swig_pl_config_auth_walk_func,
+ svn_swig_rb_config_auth_walk_func)
+#endif
+
/* -----------------------------------------------------------------------
* For all the various functions that set a callback baton create a reference
* for the baton (which in this case is an SV pointing to the callback)
@@ -778,6 +814,7 @@ svn_swig_pl_set_current_pool (apr_pool_t
#pragma SWIG nowarn=+305
%include svn_opt_h.swg
+%include svn_cmdline_h.swg
%include svn_auth_h.swg
%include svn_config_h.swg
%include svn_utf_h.swg
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_containers.swg
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_containers.swg?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_containers.swg (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_containers.swg Sat Apr 27 21:30:36 2013
@@ -265,6 +265,20 @@
#endif
+#ifdef SWIGPERL
+%typemap(out) apr_hash_t *PROPHASH
+{
+ %append_output(svn_swig_pl_prophash_to_hash($1));
+}
+
+%typemap(out) apr_hash_t *changed_paths2
+{
+ %append_output(
+ ($1) ? svn_swig_pl_convert_hash($1, $descriptor(svn_log_changed_path2_t *))
+ : &PL_sv_undef);
+}
+#endif
+
#ifdef SWIGRUBY
%typemap(in) apr_hash_t *PROPHASH
{
@@ -291,7 +305,6 @@
}
#endif
-#if defined(SWIGPYTHON) || defined(SWIGRUBY)
%apply apr_hash_t *PROPHASH {
apr_hash_t *target_props,
apr_hash_t *source_props,
@@ -300,7 +313,6 @@
apr_hash_t *revprop_table,
apr_hash_t *revprops
};
-#endif
#ifdef SWIGRUBY
%typemap(out) apr_hash_t *CHANGED_PATH_HASH
@@ -421,6 +433,19 @@
*/
/* -----------------------------------------------------------------------
+ Output of apr_array_header_t * <svn_prop_inherited_item_t *>
+*/
+#ifdef SWIGPYTHON
+%typemap(argout) apr_array_header_t **OUTPUT_OF_PROP_INHERITED_ITEM {
+ %append_output(svn_swig_py_propinheriteditemarray_to_dict(*$1));
+}
+
+%apply apr_array_header_t **OUTPUT_OF_PROP_INHERITED_ITEM {
+ apr_array_header_t **inherited_props
+};
+#endif
+
+/* -----------------------------------------------------------------------
Output of apr_array_header_t * <svn_prop_t *>
*/
#ifdef SWIGRUBY
@@ -571,6 +596,10 @@
$1 = (apr_array_header_t *) svn_swig_pl_strings_to_array($input,
_global_pool);
}
+%typemap(in) const apr_array_header_t *STRINGLIST_MAY_BE_NULL {
+ $1 = SvOK($input) ? (apr_array_header_t *) svn_swig_pl_strings_to_array(
+ $input, _global_pool) : NULL;
+}
#endif
#ifdef SWIGRUBY
%typemap(in) const apr_array_header_t *STRINGLIST {
@@ -599,7 +628,7 @@
apr_array_header_t *preserved_exts
};
-#ifdef SWIGRUBY
+#if defined(SWIGPERL) || defined(SWIGRUBY)
%apply const apr_array_header_t *STRINGLIST_MAY_BE_NULL {
apr_array_header_t *revprops
};
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_types.swg
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_types.swg?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_types.swg (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/include/svn_types.swg Sat Apr 27 21:30:36 2013
@@ -708,28 +708,10 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE se
svn_repos_get_logs()
*/
-#ifdef SWIGPYTHON
-%typemap(in) (svn_log_message_receiver_t receiver,
- void *receiver_baton) {
- $1 = svn_swig_py_log_receiver;
- $2 = (void *)$input;
-}
-#endif
-#ifdef SWIGPERL
-%typemap(in) (svn_log_message_receiver_t receiver,
- void *receiver_baton) {
- $1 = svn_swig_pl_thunk_log_receiver;
- $2 = (void *)$input;
-}
-#endif
-
-#ifdef SWIGRUBY
-%typemap(in) (svn_log_message_receiver_t receiver,
- void *receiver_baton) {
- $1 = svn_swig_rb_log_receiver;
- $2 = (void *)svn_swig_rb_make_baton($input, _global_svn_swig_rb_pool);
-}
-#endif
+%callback_typemap(svn_log_message_receiver_t receiver, void *receiver_baton,
+ svn_swig_py_log_receiver,
+ svn_swig_pl_thunk_log_receiver,
+ svn_swig_rb_log_receiver)
/* -----------------------------------------------------------------------
Callback: svn_log_entry_receiver_t
@@ -738,21 +720,10 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE se
svn_repos_get_logs4()
*/
-#ifdef SWIGPYTHON
-%typemap(in) (svn_log_entry_receiver_t receiver,
- void *receiver_baton) {
- $1 = svn_swig_py_log_entry_receiver;
- $2 = (void *)$input;
-}
-#endif
-
-#ifdef SWIGRUBY
-%typemap(in) (svn_log_entry_receiver_t receiver, void *receiver_baton)
-{
- $1 = svn_swig_rb_log_entry_receiver;
- $2 = (void *)svn_swig_rb_make_baton($input, _global_svn_swig_rb_pool);
-}
-#endif
+%callback_typemap(svn_log_entry_receiver_t receiver, void *receiver_baton,
+ svn_swig_py_log_entry_receiver,
+ svn_swig_pl_thunk_log_entry_receiver,
+ svn_swig_rb_log_entry_receiver)
/* -----------------------------------------------------------------------
Callback: svn_commit_callback_t
@@ -906,6 +877,39 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE se
#endif
/* -----------------------------------------------------------------------
+ Callback: svn_repos_freeze_func_t
+*/
+#ifdef SWIGPYTHON
+%typemap(in) (svn_repos_freeze_func_t freeze_func, void *freeze_baton)
+{
+ $1 = svn_swig_py_repos_freeze_func;
+ $2 = (void *)$input;
+}
+#endif
+
+/* -----------------------------------------------------------------------
+ Callback: svn_fs_freeze_func_t
+*/
+#ifdef SWIGPYTHON
+%typemap(in) (svn_fs_freeze_func_t freeze_func, void *freeze_baton)
+{
+ $1 = svn_swig_py_fs_freeze_func;
+ $2 = (void *)$input;
+}
+#endif
+
+/* -----------------------------------------------------------------------
+ Callback: svn_proplist_receiver2_t
+*/
+#ifdef SWIGPYTHON
+%typemap(in) (svn_proplist_receiver2_t receiver, void *receiver_baton)
+{
+ $1 = svn_swig_py_proplist_receiver2;
+ $2 = (void *)$input;
+}
+#endif
+
+/* -----------------------------------------------------------------------
Callback: svn_fs_warning_callback_t
*/
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c Sat Apr 27 21:30:36 2013
@@ -313,7 +313,7 @@ SV *svn_swig_pl_revnums_to_list(const ap
{
return convert_array(array, (element_converter_t)convert_svn_revnum_t,
NULL);
-}
+}
/* perl -> c svn_opt_revision_t conversion */
svn_opt_revision_t *svn_swig_pl_set_revision(svn_opt_revision_t *rev, SV *source)
@@ -911,6 +911,24 @@ svn_error_t *svn_swig_pl_thunk_log_recei
return SVN_NO_ERROR;
}
+svn_error_t *svn_swig_pl_thunk_log_entry_receiver(void *baton,
+ svn_log_entry_t *log_entry,
+ apr_pool_t *pool)
+{
+ SV *receiver = baton;
+
+ if (!SvOK(receiver))
+ return SVN_NO_ERROR;
+
+ svn_swig_pl_callback_thunk(CALL_SV,
+ receiver, NULL,
+ "SS",
+ log_entry, _SWIG_TYPE("svn_log_entry_t *"),
+ pool, POOLINFO);
+
+ return SVN_NO_ERROR;
+}
+
svn_error_t * svn_swig_pl_thunk_client_diff_summarize_func(
const svn_client_diff_summarize_t *diff,
void *baton,
@@ -983,7 +1001,7 @@ svn_error_t *svn_swig_pl_thunk_commit_ca
return SVN_NO_ERROR;
}
-svn_error_t *svn_swig_pl_thunk_commit_callback2(const svn_commit_info_t *commit_info,
+svn_error_t *svn_swig_pl_thunk_commit_callback2(const svn_commit_info_t *commit_info,
void *baton,
apr_pool_t *pool)
{
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h Sat Apr 27 21:30:36 2013
@@ -108,8 +108,8 @@ SV *svn_swig_pl_revnums_to_list(const ap
svn_opt_revision_t *svn_swig_pl_set_revision(svn_opt_revision_t *rev, SV *source);
-/* thunked log receiver function. */
-svn_error_t * svn_swig_pl_thunk_log_receiver(void *py_receiver,
+/* thunked log_message receiver function. */
+svn_error_t * svn_swig_pl_thunk_log_receiver(void *baton,
apr_hash_t *changed_paths,
svn_revnum_t rev,
const char *author,
@@ -117,6 +117,11 @@ svn_error_t * svn_swig_pl_thunk_log_rece
const char *msg,
apr_pool_t *pool);
+/* thunked log_entry receiver function. */
+svn_error_t * svn_swig_pl_thunk_log_entry_receiver(void *baton,
+ svn_log_entry_t *log_entry,
+ apr_pool_t *pool);
+
/* thunked diff summarize callback. */
svn_error_t * svn_swig_pl_thunk_client_diff_summarize_func(
const svn_client_diff_summarize_t *diff,
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/Core.pm
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/Core.pm?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/Core.pm (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/Core.pm Sat Apr 27 21:30:36 2013
@@ -698,6 +698,45 @@ no previous history.
=cut
+package _p_svn_log_changed_path2_t;
+use SVN::Base qw(Core svn_log_changed_path2_t_);
+
+=head2 svn_log_changed_path2_t
+
+=over 4
+
+=item $lcp-E<gt>action()
+
+'A'dd, 'D'elete, 'R'eplace, 'M'odify
+
+=item $lcp-E<gt>copyfrom_path()
+
+Source path of copy, or C<undef> if there isn't any previous revision
+history.
+
+=item $lcp-E<gt>copyfrom_rev()
+
+Source revision of copy, or C<$SVN::Core::INVALID_REVNUM> if there is
+no previous history.
+
+=item $lcp-E<gt>node_kind()
+
+The type of the node, a C<$SVN::Node> enum; may be C<$SVN::Node::unknown>.
+
+=item $lcp-E<gt>text_modified()
+
+Is the text modified, a C<SVN::Tristate> enum,
+may be C<$SVN::Tristate::unknown>.
+
+=item $lcp-E<gt>props_modified()
+
+Are properties modified, a C<SVN::Tristate> enum,
+may be C<$SVN::Tristate::unknown>.
+
+=back
+
+=cut
+
package SVN::Node;
use SVN::Base qw(Core svn_node_);
@@ -710,6 +749,20 @@ $SVN::Node::dir, $SVN::Node::unknown.
=cut
+package SVN::Tristate;
+use SVN::Base qw(Core svn_tristate_);
+
+=head2 svn_tristate_t - SVN::Tristate
+
+An enum of the following constants:
+
+$SVN::Tristate::true, $SVN::Tristate::false, $SVN::Tristate::unknown
+
+Note that these true/false values have nothing to do with Perl's concept
+of truth. In fact, each constant would evaluate to true in a boolean context.
+
+=cut
+
package SVN::Depth;
use SVN::Base qw(Core svn_depth_);
@@ -848,12 +901,48 @@ Error message from the post-commit hook,
=item $commit-E<gt>repos_root()
-Repoistory root, may be undef if unknown.
+Repository root, may be C<undef> if unknown.
=back
=cut
+package _p_svn_log_entry_t;
+use SVN::Base qw(Core svn_log_entry_t_);
+
+=head2 svn_log_entry_t
+
+=item $entry-E<gt>revision()
+
+The revision of the commit.
+
+=item $entry-E<gt>revprops()
+
+A reference to a hash of requested revision properties,
+which may be C<undef> if it would contain no revprops.
+
+=item $entry-E<gt>has_children()
+
+Whether or not this message has children.
+
+=item $entry-E<gt>changed_paths2()
+
+A reference to hash containing as keys every path committed in
+C<$entry-E<gt>revision()>; the values are C<_p_svn_log_changed_path2_t>
+objects.
+
+=item $entry-E<gt>non_inheritable()
+
+Whether C<$entry-E<gt>revision()> should be interpreted as non-inheritable
+in the same sense of C<_p_svn_merge_range_t>.
+
+=item $entry-E<gt>subtractive_merge()
+
+Whether C<$entry-E<gt>revision()> is a merged revision resulting
+from a reverse merge.
+
+=cut
+
package _p_svn_auth_cred_simple_t;
use SVN::Base qw(Core svn_auth_cred_simple_t_);
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/t/3client.t
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/t/3client.t?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/t/3client.t (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/perl/native/t/3client.t Sat Apr 27 21:30:36 2013
@@ -20,7 +20,7 @@
#
#
-use Test::More tests => 223;
+use Test::More tests => 262;
use strict;
# shut up about variables that are only used once.
@@ -346,70 +346,155 @@ isa_ok($svn_error, '_p_svn_error_t',
$svn_error->clear(); #don't leak this
# test getting the log
-# TEST
+
+sub test_log_message_receiver {
+ my ($changed_paths,$revision,
+ $author,$date,$message,$pool) = @_;
+ # TEST
+ isa_ok($changed_paths,'HASH',
+ 'changed_paths param is a HASH');
+ # TEST
+ isa_ok($changed_paths->{'/dir1/new'},
+ '_p_svn_log_changed_path_t',
+ 'Hash value is a _p_svn_log_changed_path_t');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->action(),'A',
+ 'action returns A for add');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->copyfrom_path(),undef,
+ 'copyfrom_path returns undef as it is not a copy');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->copyfrom_rev(),
+ $SVN::Core::INVALID_REVNUM,
+ 'copyfrom_rev is set to INVALID as it is not a copy');
+ # TEST
+ is($revision,$current_rev,
+ 'revision param matches current rev');
+ # TEST
+ is($author,$username,
+ 'author param matches expected username');
+ # TEST
+ ok($date,'date param is defined');
+ # TEST
+ is($message,'Add new',
+ 'message param is the expected value');
+ # TEST
+ isa_ok($pool,'_p_apr_pool_t',
+ 'pool param is _p_apr_pool_t');
+}
+
+# TEST log range $current_rev:$current_rev
is($ctx->log("$reposurl/dir1/new",$current_rev,$current_rev,1,0,
- sub
- {
- my ($changed_paths,$revision,
- $author,$date,$message,$pool) = @_;
- # TEST
- isa_ok($changed_paths,'HASH',
- 'changed_paths param is a HASH');
- # TEST
- isa_ok($changed_paths->{'/dir1/new'},
- '_p_svn_log_changed_path_t',
- 'Hash value is a _p_svn_log_changed_path_t');
- # TEST
- is($changed_paths->{'/dir1/new'}->action(),'A',
- 'action returns A for add');
- # TEST
- is($changed_paths->{'/dir1/new'}->copyfrom_path(),undef,
- 'copyfrom_path returns undef as it is not a copy');
- # TEST
- is($changed_paths->{'/dir1/new'}->copyfrom_rev(),
- $SVN::Core::INVALID_REVNUM,
- 'copyfrom_rev is set to INVALID as it is not a copy');
- # TEST
- is($revision,$current_rev,
- 'revision param matches current rev');
- # TEST
- is($author,$username,
- 'author param matches expected username');
- # TEST
- ok($date,'date param is defined');
- # TEST
- is($message,'Add new',
- 'message param is the expected value');
- # TEST
- isa_ok($pool,'_p_apr_pool_t',
- 'pool param is _p_apr_pool_t');
- }),
+ \&test_log_message_receiver),
undef,
'log returns undef');
+# TEST log2 range $current_rev:0 limit=1
+is($ctx->log2("$reposurl/dir1/new",$current_rev,0,1,1,0,
+ \&test_log_message_receiver),
+ undef,
+ 'log2 returns undef');
+# TEST log3 range $current_rev:0 limit=1
+is($ctx->log3("$reposurl/dir1/new",'HEAD',$current_rev,0,1,1,0,
+ \&test_log_message_receiver),
+ undef,
+ 'log3 returns undef');
+
+my @new_paths = qw( dir1/new dir1/new2 dir1/new3 dir1/new4 );
+$ctx->log3([ $reposurl, @new_paths ],
+ 'HEAD',$current_rev,0,1,1,0, sub {
+ my ($changed_paths,$revision,$author,$date,$message,$pool) = @_;
+ # TEST
+ is_deeply([sort keys %$changed_paths],
+ [sort map { "/$_" } @new_paths],
+ "changed_paths for multiple targets");
+});
+
+sub get_full_log {
+ my ($rev) = @_;
+ my @log;
+ $ctx->log($reposurl, $rev, 0, 0, 0, sub {
+ my (undef, $revision, $author, $date, $msg, undef) = @_;
+ push @log, [ $revision, $author, $date, $msg ];
+ });
+ return \@log;
+}
# TEST
my $opt_revision_head = SVN::_Core::new_svn_opt_revision_t();
$opt_revision_head->kind($SVN::Core::opt_revision_head);
-is_deeply(get_log2($opt_revision_head), # got
- get_log2("HEAD")); # expected
+is_deeply(get_full_log($opt_revision_head), # got
+ get_full_log('HEAD')); # expected
# TEST
my $opt_revision_number = SVN::_Core::new_svn_opt_revision_t();
$opt_revision_number->kind($SVN::Core::opt_revision_number);
$opt_revision_number->value->number($current_rev);
-is_deeply(get_log2($opt_revision_number), # got
- get_log2($current_rev)); # expected
+is_deeply(get_full_log($opt_revision_number), # got
+ get_full_log($current_rev)); # expected
-sub get_log2 {
- my ($rev) = @_;
- my @log;
- $ctx->log2($reposurl, $rev, $rev, 0, 0, 0, sub {
- my (undef, $revision, $author, $date, $msg, undef) = @_;
- push @log, [ $revision, $author, $date, $msg ];
- });
- return \@log;
+sub test_log_entry_receiver {
+ my ($log_entry,$pool) = @_;
+ # TEST
+ isa_ok($log_entry, '_p_svn_log_entry_t',
+ 'log_entry param is a _p_svn_log_entry_t');
+ # TEST
+ isa_ok($pool,'_p_apr_pool_t',
+ 'pool param is _p_apr_pool_t');
+ # TEST
+ is($log_entry->revision,$current_rev,
+ 'log_entry->revision matches current rev');
+
+ my $revprops = $log_entry->revprops;
+ # TEST
+ isa_ok($revprops,'HASH',
+ 'log_entry->revprops is a HASH');
+ # TEST
+ is($revprops->{"svn:author"},$username,
+ 'svn:author revprop matches expected username');
+ # TEST
+ ok($revprops->{"svn:date"},'svn:date revprop is defined');
+ # TEST
+ is($revprops->{"svn:log"},'Add new',
+ 'svn:log revprop is the expected value');
+
+ my $changed_paths = $log_entry->changed_paths2;
+ # TEST
+ isa_ok($changed_paths,'HASH',
+ 'log_entry->changed_paths2 is a HASH');
+ # TEST
+ isa_ok($changed_paths->{'/dir1/new'},
+ '_p_svn_log_changed_path2_t',
+ 'Hash value is a _p_svn_log_changed_path2_t');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->action(),'A',
+ 'action returns A for add');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->node_kind(),$SVN::Node::file,
+ 'node_kind returns $SVN::Node::file');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->text_modified(),$SVN::Tristate::true,
+ 'text_modified returns true');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->props_modified(),$SVN::Tristate::false,
+ 'props_modified returns false');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->copyfrom_path(),undef,
+ 'copyfrom_path returns undef as it is not a copy');
+ # TEST
+ is($changed_paths->{'/dir1/new'}->copyfrom_rev(),
+ $SVN::Core::INVALID_REVNUM,
+ 'copyfrom_rev is set to INVALID as it is not a copy');
}
# TEST
+is($ctx->log4("$reposurl/dir1/new",
+ 'HEAD',$current_rev,0,1, # peg rev, start rev, end rev, limit
+ 1,1,0, # discover_changed_paths, strict_node_history, include_merged_revisions
+ undef, # revprops
+ \&test_log_entry_receiver),
+ undef,
+ 'log4 returns undef');
+
+# TEST
is($ctx->update($wcpath,'HEAD',1),$current_rev,
'Return from update is the current rev');
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c Sat Apr 27 21:30:36 2013
@@ -548,6 +548,19 @@ static PyObject *convert_svn_string_t(vo
return PyString_FromStringAndSize((void *)s->data, s->len);
}
+/* Convert a C string into a Python String object (or a reference to
+ Py_None if CSTRING is NULL). */
+static PyObject *cstring_to_pystring(const char *cstring)
+{
+ if (! cstring)
+ {
+ PyObject *retval = Py_None;
+ Py_INCREF(Py_None);
+ return retval;
+ }
+ return PyString_FromString(cstring);
+}
+
static PyObject *convert_svn_client_commit_item3_t(void *value, void *ctx)
{
PyObject *list;
@@ -559,30 +572,9 @@ static PyObject *convert_svn_client_comm
list = PyList_New(9);
- if (item->path)
- path = PyString_FromString(item->path);
- else
- {
- path = Py_None;
- Py_INCREF(Py_None);
- }
-
- if (item->url)
- url = PyString_FromString(item->url);
- else
- {
- url = Py_None;
- Py_INCREF(Py_None);
- }
-
- if (item->copyfrom_url)
- cf_url = PyString_FromString(item->copyfrom_url);
- else
- {
- cf_url = Py_None;
- Py_INCREF(Py_None);
- }
-
+ path = cstring_to_pystring(item->path);
+ url = cstring_to_pystring(item->url);
+ cf_url = cstring_to_pystring(item->copyfrom_url);
kind = PyInt_FromLong(item->kind);
rev = PyInt_FromLong(item->revision);
cf_rev = PyInt_FromLong(item->copyfrom_rev);
@@ -709,6 +701,51 @@ PyObject *svn_swig_py_mergeinfo_catalog_
return convert_hash(hash, convert_mergeinfo_hash, type, py_pool);
}
+PyObject *
+svn_swig_py_propinheriteditemarray_to_dict(const apr_array_header_t *array)
+{
+ PyObject *dict = PyDict_New();
+ int i;
+
+ if (dict == NULL)
+ return NULL;
+
+ for (i = 0; i < array->nelts; ++i)
+ {
+ svn_prop_inherited_item_t *prop_inherited_item
+ = APR_ARRAY_IDX(array, i, svn_prop_inherited_item_t *);
+ apr_hash_t *prop_hash = prop_inherited_item->prop_hash;
+ PyObject *py_key, *py_value;
+
+ py_key = PyString_FromString(prop_inherited_item->path_or_url);
+ if (py_key == NULL)
+ goto error;
+
+ py_value = svn_swig_py_prophash_to_dict(prop_hash);
+ if (py_value == NULL)
+ {
+ Py_DECREF(py_key);
+ goto error;
+ }
+
+ if (PyDict_SetItem(dict, py_key, py_value) == -1)
+ {
+ Py_DECREF(py_value);
+ Py_DECREF(py_key);
+ goto error;
+ }
+
+ Py_DECREF(py_value);
+ Py_DECREF(py_key);
+ }
+
+ return dict;
+
+ error:
+ Py_DECREF(dict);
+ return NULL;
+}
+
PyObject *svn_swig_py_proparray_to_dict(const apr_array_header_t *array)
{
PyObject *dict = PyDict_New();
@@ -744,7 +781,15 @@ PyObject *svn_swig_py_proparray_to_dict(
}
}
- PyDict_SetItem(dict, py_key, py_value);
+ if (PyDict_SetItem(dict, py_key, py_value) == -1)
+ {
+ Py_DECREF(py_key);
+ Py_DECREF(py_value);
+ goto error;
+ }
+
+ Py_DECREF(py_key);
+ Py_DECREF(py_value);
}
return dict;
@@ -787,6 +832,7 @@ PyObject *svn_swig_py_locationhash_to_di
}
if (PyDict_SetItem(dict, key, value) == -1)
{
+ Py_DECREF(key);
Py_DECREF(value);
Py_DECREF(dict);
return NULL;
@@ -846,7 +892,11 @@ PyObject *svn_swig_py_c_strings_to_list(
if (ob == NULL)
goto error;
if (PyList_Append(list, ob) == -1)
+ {
+ Py_DECREF(ob);
goto error;
+ }
+ Py_DECREF(ob);
}
return list;
@@ -2587,6 +2637,139 @@ svn_error_t *svn_swig_py_repos_history_f
return err;
}
+static svn_error_t *
+freeze_func(void *baton,
+ apr_pool_t *pool)
+{
+ PyObject *receiver = baton;
+ PyObject *py_pool;
+ PyObject *result;
+ svn_error_t *err = SVN_NO_ERROR;
+
+ if ((receiver == NULL) || (receiver == Py_None))
+ return SVN_NO_ERROR;
+
+ svn_swig_py_acquire_py_lock();
+
+ py_pool = make_ob_pool(pool);
+ if (py_pool == NULL)
+ {
+ err = callback_exception_error();
+ goto finished;
+ }
+
+ result = PyObject_CallFunction(receiver, (char *)"O", py_pool);
+ if (result == NULL)
+ {
+ err = callback_exception_error();
+ }
+ else
+ {
+ if (result != Py_None)
+ err = callback_bad_return_error("Not None");
+ Py_DECREF(result);
+ }
+
+ Py_DECREF(py_pool);
+
+finished:
+ svn_swig_py_release_py_lock();
+ return err;
+}
+
+svn_error_t *svn_swig_py_repos_freeze_func(void *baton,
+ apr_pool_t *pool)
+{
+ return freeze_func(baton, pool);
+}
+
+svn_error_t *svn_swig_py_fs_freeze_func(void *baton,
+ apr_pool_t *pool)
+{
+ return freeze_func(baton, pool);
+}
+
+svn_error_t *svn_swig_py_proplist_receiver2(void *baton,
+ const char *path,
+ apr_hash_t *prop_hash,
+ apr_array_header_t *inherited_props,
+ apr_pool_t *pool)
+{
+ PyObject *receiver = baton;
+ PyObject *py_pool;
+ PyObject *py_props;
+ PyObject *py_iprops;
+ PyObject *result;
+ svn_error_t *err = SVN_NO_ERROR;
+
+ if ((receiver == NULL) || (receiver == Py_None))
+ return SVN_NO_ERROR;
+
+ svn_swig_py_acquire_py_lock();
+
+ py_pool = make_ob_pool(pool);
+ if (py_pool == NULL)
+ {
+ err = callback_exception_error();
+ goto finished;
+ }
+
+ if (prop_hash)
+ {
+ py_props = svn_swig_py_prophash_to_dict(prop_hash);
+ if (py_props == NULL)
+ {
+ err = type_conversion_error("apr_hash_t *");
+ Py_DECREF(py_pool);
+ goto finished;
+ }
+ }
+ else
+ {
+ py_props = Py_None;
+ Py_INCREF(Py_None);
+ }
+
+ if (inherited_props)
+ {
+ py_iprops = svn_swig_py_propinheriteditemarray_to_dict(inherited_props);
+ if (py_iprops == NULL)
+ {
+ err = type_conversion_error("apr_array_header_t *");
+ Py_DECREF(py_props);
+ Py_DECREF(py_pool);
+ goto finished;
+ }
+ }
+ else
+ {
+ py_iprops = Py_None;
+ Py_INCREF(Py_None);
+ }
+
+ result = PyObject_CallFunction(receiver,
+ (char *)"sOOO",
+ path, py_props, py_iprops, py_pool);
+ if (result == NULL)
+ {
+ err = callback_exception_error();
+ }
+ else
+ {
+ if (result != Py_None)
+ err = callback_bad_return_error("Not None");
+ Py_DECREF(result);
+ }
+
+ Py_DECREF(py_props);
+ Py_DECREF(py_iprops);
+ Py_DECREF(py_pool);
+
+finished:
+ svn_swig_py_release_py_lock();
+ return err;
+}
+
svn_error_t *svn_swig_py_log_receiver(void *baton,
apr_hash_t *changed_paths,
@@ -3114,6 +3297,64 @@ svn_swig_py_auth_ssl_client_cert_pw_prom
return err;
}
+svn_error_t *
+svn_swig_py_config_auth_walk_func(svn_boolean_t *delete_cred,
+ void *walk_baton,
+ const char *cred_kind,
+ const char *realmstring,
+ apr_hash_t *hash,
+ apr_pool_t *scratch_pool)
+{
+ PyObject *function = walk_baton;
+ PyObject *result;
+ PyObject *py_scratch_pool, *py_hash;
+ svn_error_t *err = SVN_NO_ERROR;
+
+ *delete_cred = FALSE;
+
+ if (function == NULL || function == Py_None)
+ return SVN_NO_ERROR;
+
+ svn_swig_py_acquire_py_lock();
+
+ py_scratch_pool = make_ob_pool(scratch_pool);
+ if (py_scratch_pool == NULL)
+ {
+ err = callback_exception_error();
+ goto finished;
+ }
+ py_hash = svn_swig_py_prophash_to_dict(hash);
+ if (py_hash == NULL)
+ {
+ Py_DECREF(py_scratch_pool);
+ err = callback_exception_error();
+ goto finished;
+ }
+
+ if ((result = PyObject_CallFunction(function, (char *)"ssOO",
+ cred_kind, realmstring,
+ py_hash, py_scratch_pool)) == NULL)
+ {
+ err = callback_exception_error();
+ }
+ else
+ {
+ if (PyInt_Check(result))
+ *delete_cred = PyInt_AsLong(result) ? TRUE : FALSE;
+ else if (PyLong_Check(result))
+ *delete_cred = PyLong_AsLong(result) ? TRUE : FALSE;
+ else
+ err = callback_bad_return_error("Not an integer");
+ Py_DECREF(result);
+ }
+ Py_DECREF(py_hash);
+ Py_DECREF(py_scratch_pool);
+
+finished:
+ svn_swig_py_release_py_lock();
+ return err;
+}
+
/* svn_ra_callbacks_t */
static svn_error_t *
ra_callbacks_open_tmp_file(apr_file_t **fp,
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h Sat Apr 27 21:30:36 2013
@@ -215,6 +215,13 @@ apr_array_header_t *svn_swig_py_proparra
SVN_SWIG_SWIGUTIL_EXPORT
PyObject *svn_swig_py_proparray_to_dict(const apr_array_header_t *array);
+/* helper function to convert a 'apr_array_header_t *' of
+ 'svn_prop_inherited_item_t' to a Python dictionary mapping strings
+ to dictionary. */
+SVN_SWIG_SWIGUTIL_EXPORT
+PyObject *
+svn_swig_py_propinheriteditemarray_to_dict(const apr_array_header_t *array);
+
/* helper function to convert a Python dictionary mapping strings to
strings into an apr_hash_t mapping const char *'s to svn_string_t's,
allocated in POOL. */
@@ -399,6 +406,24 @@ svn_error_t *svn_swig_py_log_entry_recei
svn_log_entry_t *log_entry,
apr_pool_t *pool);
+/* thunked repos freeze function */
+SVN_SWIG_SWIGUTIL_EXPORT
+svn_error_t *svn_swig_py_repos_freeze_func(void *baton,
+ apr_pool_t *pool);
+
+/* thunked fs freeze function */
+SVN_SWIG_SWIGUTIL_EXPORT
+svn_error_t *svn_swig_py_fs_freeze_func(void *baton,
+ apr_pool_t *pool);
+
+/* thunked proplist receiver2 function */
+SVN_SWIG_SWIGUTIL_EXPORT
+svn_error_t *svn_swig_py_proplist_receiver2(void *baton,
+ const char *path,
+ apr_hash_t *prop_hash,
+ apr_array_header_t *inherited_props,
+ apr_pool_t *pool);
+
/* thunked info receiver function */
SVN_SWIG_SWIGUTIL_EXPORT
svn_error_t *svn_swig_py_info_receiver_func(void *py_receiver,
@@ -481,6 +506,15 @@ svn_error_t *svn_swig_py_auth_ssl_client
svn_boolean_t may_save,
apr_pool_t *pool);
+/* auth cleanup callback */
+SVN_SWIG_SWIGUTIL_EXPORT
+svn_error_t *svn_swig_py_config_auth_walk_func(svn_boolean_t *delete_cred,
+ void *walk_baton,
+ const char *cred_kind,
+ const char *realmstring,
+ apr_hash_t *hash,
+ apr_pool_t *scratch_pool);
+
SVN_SWIG_SWIGUTIL_EXPORT
void
svn_swig_py_setup_ra_callbacks(svn_ra_callbacks2_t **callbacks,
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/checksum.py
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/checksum.py?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/checksum.py (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/checksum.py Sat Apr 27 21:30:36 2013
@@ -42,7 +42,7 @@ def suite():
if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(suite())
-
+
Propchange: subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/checksum.py
------------------------------------------------------------------------------
svn:eol-style = native
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/client.py
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/client.py?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/client.py (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/client.py Sat Apr 27 21:30:36 2013
@@ -397,6 +397,47 @@ class SubversionClientTestCase(unittest.
core.svn_auth_set_gnome_keyring_unlock_prompt_func(self.client_ctx.auth_baton, prompt_func)
+ def proplist_receiver_trunk(self, path, props, iprops, pool):
+ self.assertEquals(props['svn:global-ignores'], '*.q\n')
+ self.proplist_receiver_trunk_calls += 1
+
+ def proplist_receiver_dir1(self, path, props, iprops, pool):
+ self.assertEquals(iprops[self.proplist_receiver_dir1_key],
+ {'svn:global-ignores':'*.q\n'})
+ self.proplist_receiver_dir1_calls += 1
+
+ def test_inherited_props(self):
+ """Test inherited props"""
+
+ trunk_url = self.repos_uri + '/trunk'
+ client.propset_remote('svn:global-ignores', '*.q', trunk_url,
+ False, 12, {}, None, self.client_ctx)
+
+ head = core.svn_opt_revision_t()
+ head.kind = core.svn_opt_revision_head
+ props, iprops, rev = client.propget5('svn:global-ignores', trunk_url,
+ head, head, core.svn_depth_infinity,
+ None, self.client_ctx)
+ self.assertEquals(props[trunk_url], '*.q\n')
+
+ dir1_url = trunk_url + '/dir1'
+ props, iprops, rev = client.propget5('svn:global-ignores', dir1_url,
+ head, head, core.svn_depth_infinity,
+ None, self.client_ctx)
+ self.assertEquals(iprops[trunk_url], {'svn:global-ignores':'*.q\n'})
+
+ self.proplist_receiver_trunk_calls = 0
+ client.proplist4(trunk_url, head, head, core.svn_depth_empty, None, True,
+ self.proplist_receiver_trunk, self.client_ctx)
+ self.assertEquals(self.proplist_receiver_trunk_calls, 1)
+
+ self.proplist_receiver_dir1_calls = 0
+ self.proplist_receiver_dir1_key = trunk_url
+ client.proplist4(dir1_url, head, head, core.svn_depth_empty, None, True,
+ self.proplist_receiver_dir1, self.client_ctx)
+ self.assertEquals(self.proplist_receiver_dir1_calls, 1)
+
+
def suite():
return unittest.defaultTestLoader.loadTestsFromTestCase(
SubversionClientTestCase)
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/core.py
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/core.py?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/core.py (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/core.py Sat Apr 27 21:30:36 2013
@@ -135,7 +135,7 @@ class SubversionCoreTestCase(unittest.Te
def enumerator(name, value, pool):
raise Exception
-
+
# the exception will be swallowed, but enumeration must be stopped
self.assertEqual(
svn.core.svn_config_enumerate2(cfg, "section", enumerator), 1)
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/repository.py
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/repository.py?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/repository.py (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/python/tests/repository.py Sat Apr 27 21:30:36 2013
@@ -54,7 +54,7 @@ class SubversionRepositoryTestCase(unitt
def setUp(self):
"""Load a Subversion repository"""
self.temper = utils.Temper()
- (self.repos, _, _) = self.temper.alloc_known_repo(
+ (self.repos, self.repos_path, _) = self.temper.alloc_known_repo(
'trac/versioncontrol/tests/svnrepos.dump', suffix='-repository')
self.fs = repos.fs(self.repos)
self.rev = fs.youngest_rev(self.fs)
@@ -198,6 +198,16 @@ class SubversionRepositoryTestCase(unitt
_authz_callback),
"Youngest revision")
+ def freeze_body(self, pool):
+ self.freeze_invoked += 1
+
+ def test_freeze(self):
+ """Test repository freeze"""
+
+ self.freeze_invoked = 0
+ repos.freeze([self.repos_path], self.freeze_body)
+ self.assertEqual(self.freeze_invoked, 1)
+
def suite():
return unittest.defaultTestLoader.loadTestsFromTestCase(
SubversionRepositoryTestCase)
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_client.rb
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_client.rb?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_client.rb (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_client.rb Sat Apr 27 21:30:36 2013
@@ -2204,7 +2204,7 @@ class SvnClientTest < Test::Unit::TestCa
make_context(log) do |ctx|
items = nil
ctx.set_log_msg_func do |l_items|
- # ruby 1.8 will carry the assignment of items out of the
+ # ruby 1.8 will carry the assignment of items out of the
# scope of this block, 1.9 will not, so we must assign.
items = l_items
[true, log]
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_delta.rb
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_delta.rb?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_delta.rb (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_delta.rb Sat Apr 27 21:30:36 2013
@@ -174,8 +174,8 @@ class SvnDeltaTest < Test::Unit::TestCas
source = StringIO.new(source_text)
target = StringIO.new(target_text)
stream = Svn::Delta::TextDeltaStream.new(source, target)
-
- if RUBY_VERSION > '1.9'
+
+ if RUBY_VERSION > '1.9'
output = StringIO.new("".encode('ASCII-8BIT'))
else
output = StringIO.new("")
@@ -185,7 +185,7 @@ class SvnDeltaTest < Test::Unit::TestCas
Svn::Delta.send(target_text, handler)
output.rewind
result = output.read
- if RUBY_VERSION > '1.9'
+ if RUBY_VERSION > '1.9'
regex = get_regex("\\ASVN.*#{target_text}\\Z".encode('utf-8'),result.encoding,16)
assert_match(regex, result)
else
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_wc.rb
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_wc.rb?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_wc.rb (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/ruby/test/test_wc.rb Sat Apr 27 21:30:36 2013
@@ -327,7 +327,7 @@ class SvnWcTest < Test::Unit::TestCase
callbacks.ignored_errors = ignored_errors
access.walk_entries(@wc_path, callbacks)
sorted_ignored_errors = ignored_errors.sort_by {|path, err| path}
- sorted_ignored_errors = sorted_ignored_errors.collect! do |path, err|
+ sorted_ignored_errors = sorted_ignored_errors.collect! do |path, err|
[path, err.class]
end
assert_equal([
Modified: subversion/branches/fsfs-format7/subversion/bindings/swig/svn_client.i
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/bindings/swig/svn_client.i?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/bindings/swig/svn_client.i (original)
+++ subversion/branches/fsfs-format7/subversion/bindings/swig/svn_client.i Sat Apr 27 21:30:36 2013
@@ -49,13 +49,7 @@
%apply const char *MAY_BE_NULL {
const char *native_eol,
const char *comment,
- const char *relative_to_dir,
- apr_hash_t *revprop_table,
- apr_array_header_t *changelists
-};
-
-%apply apr_hash_t *PROPHASH {
- apr_hash_t *revprop_table
+ const char *relative_to_dir
};
#ifdef SWIGRUBY
Modified: subversion/branches/fsfs-format7/subversion/include/private/svn_cache.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/include/private/svn_cache.h?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/include/private/svn_cache.h (original)
+++ subversion/branches/fsfs-format7/subversion/include/private/svn_cache.h Sat Apr 27 21:30:36 2013
@@ -275,7 +275,7 @@ svn_cache__make_memcache_from_config(svn
* down to next lower power of two. Also, there is an implementation
* specific upper limit and the setting will be capped there automatically.
* If the number is 0, a default will be derived from @a total_size.
- *
+ *
* If access to the resulting cache object is guaranteed to be serialized,
* @a thread_safe may be set to @c FALSE for maximum performance.
*
Modified: subversion/branches/fsfs-format7/subversion/include/private/svn_diff_tree.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/include/private/svn_diff_tree.h?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/include/private/svn_diff_tree.h (original)
+++ subversion/branches/fsfs-format7/subversion/include/private/svn_diff_tree.h Sat Apr 27 21:30:36 2013
@@ -34,7 +34,7 @@
extern "C" {
#endif /* __cplusplus */
-/*
+/*
* About the diff tree processor.
*
* Subversion uses two kinds of editors to describe changes. One to
@@ -68,7 +68,7 @@ extern "C" {
* * It should provide the information that was missing in the old interface,
* but required to close existing issues.
*
- * E.g. - properties and children on deleted directories.
+ * E.g. - properties and children on deleted directories.
* - revision numbers and copyfrom information on directories.
*
* To cleanup the implementation and make it easier on diff processors to
Modified: subversion/branches/fsfs-format7/subversion/include/private/svn_fs_private.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/include/private/svn_fs_private.h?rev=1476675&r1=1476674&r2=1476675&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/include/private/svn_fs_private.h (original)
+++ subversion/branches/fsfs-format7/subversion/include/private/svn_fs_private.h Sat Apr 27 21:30:36 2013
@@ -87,7 +87,7 @@ svn_fs__path_valid(const char *path, apr
* from the constants SVN_FS_TXN_* (#SVN_FS_TXN_CHECK_OOD etc.). It is a
* property of the underlying transaction, and will not change if multiple
* editors are used to refer to that transaction (see @a autocommit, below).
- *
+ *
* @note If you're building a txn for committing, you probably don't want
* to call this directly. Instead, call svn_repos__get_commit_ev2(), which
* honors the repository's hook configurations.