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/08/07 02:02:32 UTC

svn commit: r1511151 [1/2] - in /subversion/branches/log-addressing: ./ build/generator/ subversion/ subversion/bindings/javahl/native/ subversion/bindings/javahl/src/org/apache/subversion/javahl/ subversion/bindings/javahl/src/org/apache/subversion/ja...

Author: stefan2
Date: Wed Aug  7 00:02:30 2013
New Revision: 1511151

URL: http://svn.apache.org/r1511151
Log:
On the log-addressing branch: sync with the parent branch up to r1511149.
Resolve a minor conflict in fs-fs-pack-test.c.

Added:
    subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/callback/RemoteFileRevisionsCallback.java
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/bindings/javahl/src/org/apache/subversion/javahl/callback/RemoteFileRevisionsCallback.java
    subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/callback/RemoteLocationSegmentsCallback.java
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/bindings/javahl/src/org/apache/subversion/javahl/callback/RemoteLocationSegmentsCallback.java
    subversion/branches/log-addressing/subversion/include/private/svn_packed_data.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/include/private/svn_packed_data.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/   (props changed)
      - copied from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/
    subversion/branches/log-addressing/subversion/libsvn_fs_x/cached_data.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/cached_data.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/cached_data.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/cached_data.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/caching.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/caching.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/changes.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/changes.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/changes.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/changes.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/dag.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/dag.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/dag.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/dag.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/fs.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/fs.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/fs.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/fs.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/fs_x.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/fs_x.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/fs_x.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/fs_x.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/hotcopy.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/hotcopy.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/hotcopy.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/hotcopy.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/id.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/id.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/id.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/id.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/index.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/index.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/index.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/index.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/lock.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/lock.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/lock.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/lock.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/low_level.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/low_level.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/low_level.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/low_level.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/noderevs.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/noderevs.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/noderevs.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/noderevs.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/pack.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/pack.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/pack.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/pack.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/recovery.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/recovery.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/recovery.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/recovery.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/rep-cache-db.sql
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/rep-cache-db.sql
    subversion/branches/log-addressing/subversion/libsvn_fs_x/rep-cache.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/rep-cache.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/rep-cache.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/rep-cache.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/reps.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/reps.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/reps.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/reps.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/revprops.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/revprops.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/revprops.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/revprops.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/string_table.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/string_table.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/string_table.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/string_table.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/structure
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/structure
    subversion/branches/log-addressing/subversion/libsvn_fs_x/temp_serializer.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/temp_serializer.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/temp_serializer.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/temp_serializer.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/transaction.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/transaction.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/transaction.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/transaction.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/tree.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/tree.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/tree.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/tree.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/util.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/util.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/util.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/util.h
    subversion/branches/log-addressing/subversion/libsvn_fs_x/verify.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/verify.c
    subversion/branches/log-addressing/subversion/libsvn_fs_x/verify.h
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_fs_x/verify.h
    subversion/branches/log-addressing/subversion/libsvn_subr/packed_data.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_subr/packed_data.c
    subversion/branches/log-addressing/subversion/libsvn_subr/prefix_string.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/libsvn_subr/prefix_string.c
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
      - copied, changed from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_x/   (props changed)
      - copied from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_fs_x/
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_x/fs-x-pack-test.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_fs_x/fs-x-pack-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_x/string-table-test.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_fs_x/string-table-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_subr/packed-data-test.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_subr/packed-data-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_subr/prefix-string-test.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_subr/prefix-string-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_subr/priority-queue-test.c
      - copied unchanged from r1511147, subversion/branches/fsfs-improvements/subversion/tests/libsvn_subr/priority-queue-test.c
Removed:
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-pack-test.c
Modified:
    subversion/branches/log-addressing/   (props changed)
    subversion/branches/log-addressing/build.conf
    subversion/branches/log-addressing/build/generator/gen_base.py
    subversion/branches/log-addressing/configure.ac
    subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.cpp
    subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.h
    subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.cpp
    subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.h
    subversion/branches/log-addressing/subversion/bindings/javahl/native/org_apache_subversion_javahl_remote_RemoteSession.cpp
    subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
    subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
    subversion/branches/log-addressing/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
    subversion/branches/log-addressing/subversion/include/private/svn_string_private.h
    subversion/branches/log-addressing/subversion/include/private/svn_subr_private.h
    subversion/branches/log-addressing/subversion/include/svn_error_codes.h
    subversion/branches/log-addressing/subversion/include/svn_fs.h
    subversion/branches/log-addressing/subversion/include/svn_sorts.h
    subversion/branches/log-addressing/subversion/include/svn_string.h
    subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.c
    subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.h
    subversion/branches/log-addressing/subversion/libsvn_fs_base/lock.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/fs.h
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/hotcopy.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/id.h
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/low_level.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/pack.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/transaction.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.c
    subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.h
    subversion/branches/log-addressing/subversion/libsvn_ra_serf/util.c
    subversion/branches/log-addressing/subversion/libsvn_subr/sorts.c
    subversion/branches/log-addressing/subversion/libsvn_subr/spillbuf.c
    subversion/branches/log-addressing/subversion/libsvn_subr/stream.c
    subversion/branches/log-addressing/subversion/libsvn_subr/string.c
    subversion/branches/log-addressing/subversion/mod_dav_svn/mod_dav_svn.c
    subversion/branches/log-addressing/subversion/svn_private_config.hw
    subversion/branches/log-addressing/subversion/svnadmin/svnadmin.c
    subversion/branches/log-addressing/subversion/tests/cmdline/svnadmin_tests.py
    subversion/branches/log-addressing/subversion/tests/cmdline/svntest/main.py
    subversion/branches/log-addressing/subversion/tests/libsvn_fs/fs-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/   (props changed)
    subversion/branches/log-addressing/subversion/tests/libsvn_repos/repos-test.c
    subversion/branches/log-addressing/subversion/tests/libsvn_subr/   (props changed)
    subversion/branches/log-addressing/subversion/tests/libsvn_subr/spillbuf-test.c
    subversion/branches/log-addressing/subversion/tests/svn_test_fs.c
    subversion/branches/log-addressing/tools/dist/backport.pl

Propchange: subversion/branches/log-addressing/
------------------------------------------------------------------------------
  Merged /subversion/branches/fsfs-improvements:r1509279-1511149
  Merged /subversion/branches/fsx:r1507845-1509914
  Merged /subversion/trunk:r1509266-1511145
  Merged /subversion/branches/fsfs-format7:r1430673,1460579,1461865,1462837,1462904,1463120,1467362,1467382,1469487,1489817,1489949,1498029,1507729-1507731,1507735-1507736

Modified: subversion/branches/log-addressing/build.conf
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/build.conf?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/build.conf (original)
+++ subversion/branches/log-addressing/build.conf Wed Aug  7 00:02:30 2013
@@ -49,6 +49,7 @@ private-includes =
 private-built-includes =
         subversion/svn_private_config.h
         subversion/libsvn_fs_fs/rep-cache-db.h
+        subversion/libsvn_fs_x/rep-cache-db.h
         subversion/libsvn_wc/wc-metadata.h
         subversion/libsvn_wc/wc-queries.h
         subversion/libsvn_wc/wc-checks.h
@@ -281,6 +282,13 @@ install = fsmod-lib
 libs = libsvn_delta libsvn_subr aprutil apriconv apr libsvn_fs_util
 msvc-static = yes
 
+[libsvn_fs_x]
+type = fs-module
+path = subversion/libsvn_fs_x
+install = fsmod-lib
+libs = libsvn_delta libsvn_subr aprutil apriconv apr libsvn_fs_util
+msvc-static = yes
+
 # Low-level grab bag of utilities
 [libsvn_fs_util]
 type = lib
@@ -361,6 +369,7 @@ msvc-export = 
         private\svn_temp_serializer.h private\svn_io_private.h
         private\svn_string_private.h private\svn_magic.h
         private\svn_subr_private.h private\svn_mutex.h private\svn_named_atomic.h
+        private\svn_packed_data.h
 
 # Working copy management lib
 [libsvn_wc]
@@ -408,12 +417,18 @@ msvc-libs = libhttpd.lib
 # CONSTRUCTED HEADERS
 #
 
-[rep_cache]
-description = Schema for the rep-sharing feature
+[rep_cache_fs_fs]
+description = Schema for the FSFS rep-sharing feature
 type = sql-header
 path = subversion/libsvn_fs_fs
 sources = rep-cache-db.sql
 
+[rep_cache_fs_x]
+description = Schema for the FSX rep-sharing feature
+type = sql-header
+path = subversion/libsvn_fs_x
+sources = rep-cache-db.sql
+
 [wc_queries]
 desription = Queries on the WC database
 type = sql-header
@@ -751,16 +766,35 @@ libs = libsvn_test libsvn_fs libsvn_fs_b
 
 # ----------------------------------------------------------------------------
 # Tests for libsvn_fs_fs
-[fs-pack-test]
+[fs-fs-pack-test]
 description = Test fsfs packing in libsvn_fs_fs
 type = exe
 path = subversion/tests/libsvn_fs_fs
-sources = fs-pack-test.c
+sources = fs-fs-pack-test.c
 install = test
 libs = libsvn_test libsvn_fs libsvn_fs_fs libsvn_delta
        libsvn_subr apriconv apr
 
 # ----------------------------------------------------------------------------
+# Tests for libsvn_fs_x
+[fs-x-pack-test]
+description = Test fsx packing in libsvn_fs_x
+type = exe
+path = subversion/tests/libsvn_fs_x
+sources = fs-x-pack-test.c
+install = test
+libs = libsvn_test libsvn_fs libsvn_fs_x libsvn_delta
+       libsvn_subr apriconv apr
+
+[string-table-test]
+description = Test fsfs string tables
+type = exe
+path = subversion/tests/libsvn_fs_x
+sources = string-table-test.c
+install = test
+libs = libsvn_test libsvn_fs_x libsvn_subr apr
+
+# ----------------------------------------------------------------------------
 # Tests for libsvn_fs
 
 [locks-test]
@@ -914,6 +948,14 @@ sources = named_atomic-test-proc.c
 install = sub-test
 libs = libsvn_subr apr
 
+[packed-data-test]
+description = Test path library
+type = exe
+path = subversion/tests/libsvn_subr
+sources = packed-data-test.c
+install = test
+libs = libsvn_test libsvn_subr apriconv apr
+
 [path-test]
 description = Test path library
 type = exe
@@ -922,6 +964,22 @@ sources = path-test.c
 install = test
 libs = libsvn_test libsvn_subr apriconv apr
 
+[prefix-string-test]
+description = Test path library
+type = exe
+path = subversion/tests/libsvn_subr
+sources = prefix-string-test.c
+install = test
+libs = libsvn_test libsvn_subr apriconv apr
+
+[priority-queue-test]
+description = Test path library
+type = exe
+path = subversion/tests/libsvn_subr
+sources = priority-queue-test.c
+install = test
+libs = libsvn_test libsvn_subr apriconv apr
+
 [revision-test]
 description = Test revision library
 type = exe
@@ -1282,7 +1340,7 @@ libs = libsvn_ra_serf libsvn_ra_local li
 [fs-libs]
 type = lib
 external-lib = $(SVN_FS_LIB_LINK)
-libs = libsvn_fs_base libsvn_fs_fs
+libs = libsvn_fs_base libsvn_fs_fs libsvn_fs_x
 
 [__ALL__]
 type = project
@@ -1296,10 +1354,12 @@ libs = svn svnadmin svndumpfilter svnloo
 type = project
 path = build/win32
 libs = __ALL__
-       fs-test fs-base-test fs-fsfs-test fs-pack-test skel-test
-       strings-reps-test changes-test locks-test repos-test
+       fs-test fs-base-test fs-fsfs-test fs-fs-pack-test fs-x-pack-test
+       string-table-test
+       skel-test strings-reps-test changes-test locks-test repos-test
        checksum-test compat-test config-test hashdump-test mergeinfo-test
-       opt-test path-test stream-test string-test time-test utf-test
+       opt-test packed-data-test path-test prefix-string-test
+       priority-queue-test stream-test string-test time-test utf-test
        error-test error-code-test cache-test spillbuf-test crypto-test
        named_atomic-test named_atomic-proc-test revision-test
        subst_translate-test io-test

Modified: subversion/branches/log-addressing/build/generator/gen_base.py
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/build/generator/gen_base.py?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/build/generator/gen_base.py (original)
+++ subversion/branches/log-addressing/build/generator/gen_base.py Wed Aug  7 00:02:30 2013
@@ -261,7 +261,8 @@ class GeneratorBase:
     # ###
     # ### Currently it's only used by maintainer-mode builds.  If this
     # ### functionality ever moves to release builds, it will have to move
-    # ### to configure-time.
+    # ### to configure-time (but remember that Python cannot be assumed to
+    # ### be available from 'configure').
     import errno
 
     lines = [

Modified: subversion/branches/log-addressing/configure.ac
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/configure.ac?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/configure.ac (original)
+++ subversion/branches/log-addressing/configure.ac Wed Aug  7 00:02:30 2013
@@ -1389,6 +1389,13 @@ if test "$svn_enable_shared" = "no" || t
   svn_fs_lib_install_deps="install-fsmod-lib"
   svn_fs_lib_link="\$(FS_FS_LINK)"
 
+  AC_DEFINE(SVN_LIBSVN_FS_LINKS_FS_X, 1,
+      [Defined if libsvn_fs should link against libsvn_fs_x])
+  svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)"
+  svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)"
+dnl  FSFS already installs fsmod
+dnl  svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-fsmod-lib"
+
   if test "$svn_lib_berkeley_db" = "yes"; then
   AC_DEFINE(SVN_LIBSVN_FS_LINKS_FS_BASE, 1,
       [Defined if libsvn_fs should link against libsvn_fs_base])

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.cpp
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.cpp?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.cpp (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.cpp Wed Aug  7 00:02:30 2013
@@ -1091,13 +1091,112 @@ CreateJ::StringSet(const apr_array_heade
   return CreateJ::Set(jstrs);
 }
 
-jobject CreateJ::PropertyMap(apr_hash_t *prop_hash, apr_pool_t* scratch_pool)
+namespace {
+void fill_property_map(jobject map,
+                       apr_hash_t* prop_hash, apr_array_header_t* prop_diffs,
+                       apr_pool_t* scratch_pool, jmethodID put_mid)
 {
+  SVN_ERR_ASSERT_NO_RETURN(!prop_hash != !prop_diffs
+                           || !prop_hash && !prop_diffs);
+
+  if (!map || (prop_hash == NULL && prop_diffs == NULL))
+    return;
+
   JNIEnv *env = JNIUtil::getEnv();
 
-  if (prop_hash == NULL)
+  // Create a local frame for our references
+  env->PushLocalFrame(LOCAL_FRAME_SIZE);
+  if (JNIUtil::isJavaExceptionThrown())
+    return;
+
+  // The caller may not know the concrete class of the map, so
+  // determine the "put" method identifier here.
+  if (put_mid == 0)
+    {
+      put_mid = env->GetMethodID(env->GetObjectClass(map), "put",
+                                 "(Ljava/lang/Object;Ljava/lang/Object;)"
+                                 "Ljava/lang/Object;");
+      if (JNIUtil::isJavaExceptionThrown())
+        POP_AND_RETURN_NOTHING();
+    }
+
+  struct body
+  {
+    void operator()(const char* key, const svn_string_t* val)
+      {
+        jstring jpropName = JNIUtil::makeJString(key);
+        if (JNIUtil::isJavaExceptionThrown())
+          return;
+
+        jbyteArray jpropVal = (!val ? NULL
+                               : JNIUtil::makeJByteArray(val));
+        if (JNIUtil::isJavaExceptionThrown())
+          return;
+
+        m_env->CallObjectMethod(m_map, m_put_mid, jpropName, jpropVal);
+        if (JNIUtil::isJavaExceptionThrown())
+          return;
+
+        m_env->DeleteLocalRef(jpropName);
+        m_env->DeleteLocalRef(jpropVal);
+      }
+
+    JNIEnv*& m_env;
+    jmethodID& m_put_mid;
+    jobject& m_map;
+
+    body(JNIEnv*& xenv, jmethodID& xput_mid, jobject& xmap)
+      : m_env(xenv), m_put_mid(xput_mid), m_map(xmap)
+      {}
+  } loop_body(env, put_mid, map);
+
+  if (prop_hash)
+    {
+      if (!scratch_pool)
+        scratch_pool = apr_hash_pool_get(prop_hash);
+
+      apr_hash_index_t *hi;
+      for (hi = apr_hash_first(scratch_pool, prop_hash);
+           hi; hi = apr_hash_next(hi))
+        {
+          const char* key;
+          svn_string_t* val;
+
+          const void* v_key;
+          void* v_val;
+
+          apr_hash_this(hi, &v_key, NULL, &v_val);
+          key = static_cast<const char*>(v_key);
+          val = static_cast<svn_string_t*>(v_val);
+
+          loop_body(key, val);
+          if (JNIUtil::isJavaExceptionThrown())
+            POP_AND_RETURN_NOTHING();
+        }
+    }
+  else
+    {
+      for (int i = 0; i < prop_diffs->nelts; ++i)
+        {
+          svn_prop_t* prop = APR_ARRAY_IDX(prop_diffs, i, svn_prop_t*);
+          loop_body(prop->name, prop->value);
+          if (JNIUtil::isJavaExceptionThrown())
+            POP_AND_RETURN_NOTHING();
+        }
+    }
+}
+
+jobject property_map(apr_hash_t *prop_hash, apr_array_header_t* prop_diffs,
+                     apr_pool_t* scratch_pool)
+{
+  SVN_ERR_ASSERT_NO_RETURN(!prop_hash != !prop_diffs
+                           || !prop_hash && !prop_diffs);
+
+  if (prop_hash == NULL && prop_diffs == NULL)
     return NULL;
 
+  JNIEnv *env = JNIUtil::getEnv();
+
   // Create a local frame for our references
   env->PushLocalFrame(LOCAL_FRAME_SIZE);
   if (JNIUtil::isJavaExceptionThrown())
@@ -1129,69 +1228,35 @@ jobject CreateJ::PropertyMap(apr_hash_t 
   if (JNIUtil::isJavaExceptionThrown())
     POP_AND_RETURN_NULL;
 
-  FillPropertyMap(map, prop_hash, scratch_pool, put_mid);
+  fill_property_map(map, prop_hash, prop_diffs, scratch_pool, put_mid);
   if (JNIUtil::isJavaExceptionThrown())
     POP_AND_RETURN_NULL;
 
   return env->PopLocalFrame(map);
 }
+} // anonymous namespace
 
-void CreateJ::FillPropertyMap(jobject map, apr_hash_t* prop_hash,
-                              apr_pool_t* scratch_pool, jmethodID put_mid)
+jobject CreateJ::PropertyMap(apr_hash_t *prop_hash, apr_pool_t* scratch_pool)
 {
-  JNIEnv *env = JNIUtil::getEnv();
-
-  if (!map || !prop_hash)
-    return;
-
-  // Create a local frame for our references
-  env->PushLocalFrame(LOCAL_FRAME_SIZE);
-  if (JNIUtil::isJavaExceptionThrown())
-    return;
-
-  // The caller may not know the concrete class of the map, so
-  // determine the "put" method identifier here.
-  if (put_mid == 0)
-    {
-      put_mid = env->GetMethodID(env->GetObjectClass(map), "put",
-                                 "(Ljava/lang/Object;Ljava/lang/Object;)"
-                                 "Ljava/lang/Object;");
-      if (JNIUtil::isJavaExceptionThrown())
-        POP_AND_RETURN_NOTHING();
-    }
-
-  if (!scratch_pool)
-    scratch_pool = apr_hash_pool_get(prop_hash);
-
-  apr_hash_index_t *hi;
-  for (hi = apr_hash_first(scratch_pool, prop_hash);
-       hi; hi = apr_hash_next(hi))
-    {
-      const char *key;
-      svn_string_t *val;
-
-      const void *v_key;
-      void *v_val;
-
-      apr_hash_this(hi, &v_key, NULL, &v_val);
-      key = static_cast<const char*>(v_key);
-      val = static_cast<svn_string_t*>(v_val);
-
-      jstring jpropName = JNIUtil::makeJString(key);
-      if (JNIUtil::isJavaExceptionThrown())
-        POP_AND_RETURN_NOTHING();
+  return property_map(prop_hash, NULL, scratch_pool);
+}
 
-      jbyteArray jpropVal = JNIUtil::makeJByteArray(val);
-      if (JNIUtil::isJavaExceptionThrown())
-        POP_AND_RETURN_NOTHING();
+jobject CreateJ::PropertyMap(apr_array_header_t* prop_diffs,
+                             apr_pool_t* scratch_pool)
+{
+  return property_map(NULL, prop_diffs, scratch_pool);
+}
 
-      env->CallObjectMethod(map, put_mid, jpropName, jpropVal);
-      if (JNIUtil::isJavaExceptionThrown())
-        POP_AND_RETURN_NOTHING();
+void CreateJ::FillPropertyMap(jobject map, apr_hash_t* prop_hash,
+                              apr_pool_t* scratch_pool, jmethodID put_mid)
+{
+  fill_property_map(map, prop_hash, NULL, scratch_pool, put_mid);
+}
 
-      env->DeleteLocalRef(jpropName);
-      env->DeleteLocalRef(jpropVal);
-    }
+void CreateJ::FillPropertyMap(jobject map, apr_array_header_t* prop_diffs,
+                              apr_pool_t* scratch_pool, jmethodID put_mid)
+{
+  fill_property_map(map, NULL, prop_diffs, scratch_pool, put_mid);
 }
 
 jobject CreateJ::InheritedProps(apr_array_header_t *iprops)

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.h (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/native/CreateJ.h Wed Aug  7 00:02:30 2013
@@ -87,11 +87,19 @@ class CreateJ
   static jobject
   PropertyMap(apr_hash_t *prop_hash, apr_pool_t* scratch_pool = NULL);
 
+  static jobject
+  PropertyMap(apr_array_header_t* prop_diffs, apr_pool_t* scratch_pool = NULL);
+
   static void
   FillPropertyMap(jobject map, apr_hash_t* prop_hash,
                   apr_pool_t* scratch_pool,
                   jmethodID put_method_id = 0);
 
+  static void
+  FillPropertyMap(jobject map, apr_array_header_t* prop_diffs,
+                  apr_pool_t* scratch_pool,
+                  jmethodID put_method_id = 0);
+
   static jobject
   InheritedProps(apr_array_header_t *inherited_props);
 

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.cpp
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.cpp?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.cpp (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.cpp Wed Aug  7 00:02:30 2013
@@ -1084,37 +1084,29 @@ public:
     {
       LocationSegmentHandler* const self =
         static_cast<LocationSegmentHandler*>(baton);
-      SVN_ERR_ASSERT(self->m_jresult_list != NULL);
-      self->add(segment);
+      SVN_ERR_ASSERT(self->m_jcallback != NULL);
+      self->call(segment);
       SVN_ERR(JNIUtil::checkJavaException(SVN_ERR_BASE));
       return SVN_NO_ERROR;
     }
 
-  LocationSegmentHandler()
-    : m_jresult_list(NULL)
+  LocationSegmentHandler(jobject jcallback)
+    : m_jcallback(jcallback),
+      m_call_mid(0)
     {
       JNIEnv* env = JNIUtil::getEnv();
-      jclass cls = env->FindClass("java/util/ArrayList");
+      jclass cls = env->GetObjectClass(jcallback);
       if (JNIUtil::isJavaExceptionThrown())
         return;
 
-      static jmethodID mid = 0;
-      if (mid == 0)
-        {
-          mid = env->GetMethodID(cls, "<init>", "()V");
-          if (JNIUtil::isJavaExceptionThrown())
-            return;
-        }
-
-      jobject jresult_list = env->NewObject(cls, mid);
-      if (!JNIUtil::isJavaExceptionThrown() && jresult_list)
-        m_jresult_list = jresult_list;
+      m_call_mid = env->GetMethodID(
+          cls, "doSegment", "(L"JAVA_PACKAGE"/ISVNRemote$LocationSegment;)V");
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
     }
 
-  jobject get() const { return m_jresult_list; }
-
 private:
-  void add(svn_location_segment_t* segment)
+  void call(svn_location_segment_t* segment)
     {
       JNIEnv* env = JNIUtil::getEnv();
       jclass cls = env->FindClass(JAVA_PACKAGE"/ISVNRemote$LocationSegment");
@@ -1130,60 +1122,157 @@ private:
             return;
         }
 
-      static jmethodID mid_add = 0;
-      if (mid_add == 0)
-        {
-          jclass list_cls = env->FindClass("java/util/ArrayList");
-          if (JNIUtil::isJavaExceptionThrown())
-            return;
-          mid_add = env->GetMethodID(list_cls, "add",
-                                     "(Ljava/lang/Object;)Z");
-          if (JNIUtil::isJavaExceptionThrown())
-            return;
-        }
-
       jstring jpath = JNIUtil::makeJString(segment->path);
       if (JNIUtil::isJavaExceptionThrown())
         return;
 
-      env->CallBooleanMethod(m_jresult_list, mid_add,
-                             env->NewObject(cls, mid, jpath,
-                                            jlong(segment->range_start),
-                                            jlong(segment->range_end)));
+      env->CallVoidMethod(m_jcallback, m_call_mid,
+                          env->NewObject(cls, mid, jpath,
+                                         jlong(segment->range_start),
+                                         jlong(segment->range_end)));
       if (JNIUtil::isJavaExceptionThrown())
         return;
       env->DeleteLocalRef(jpath);
     }
 
-  jobject m_jresult_list;
+  jobject m_jcallback;
+  jmethodID m_call_mid;
 };
 } // anonymous namespace
 
-jobject
+void
 RemoteSession::getLocationSegments(jstring jpath, jlong jpeg_revision,
-                                   jlong jstart_revision, jlong jend_revision)
+                                   jlong jstart_revision, jlong jend_revision,
+                                   jobject jcallback)
 {
   SVN::Pool subPool(pool);
   Relpath path(jpath, subPool);
   if (JNIUtil::isExceptionThrown())
-    return NULL;
-  SVN_JNI_ERR(path.error_occurred(), NULL);
+    return;
+  SVN_JNI_ERR(path.error_occurred(), );
 
-  LocationSegmentHandler handler;
+  LocationSegmentHandler handler(jcallback);
   if (JNIUtil::isExceptionThrown())
-    return NULL;
+    return ;
 
   SVN_JNI_ERR(svn_ra_get_location_segments(m_session, path.c_str(),
                                            svn_revnum_t(jpeg_revision),
                                            svn_revnum_t(jstart_revision),
                                            svn_revnum_t(jend_revision),
                                            handler.callback, &handler,
-                                           subPool.getPool()),
-              NULL);
-  return handler.get();
+                                           subPool.getPool()),);
+}
+
+namespace {
+class FileRevisionHandler
+{
+public:
+  static svn_error_t* callback(void* baton,
+                               const char* path, svn_revnum_t revision,
+                               apr_hash_t* revision_props,
+                               // We ignore the deltas as they're not
+                               // exposed in the JavaHL API.
+                               svn_boolean_t result_of_merge,
+                               svn_txdelta_window_handler_t*, void**,
+                               apr_array_header_t* prop_diffs,
+                               apr_pool_t* scratch_pool)
+    {
+      FileRevisionHandler* const self =
+        static_cast<FileRevisionHandler*>(baton);
+      SVN_ERR_ASSERT(self->m_jcallback != NULL);
+      self->call(path, revision, revision_props,
+                result_of_merge, prop_diffs, scratch_pool);
+      SVN_ERR(JNIUtil::checkJavaException(SVN_ERR_BASE));
+      return SVN_NO_ERROR;
+    }
+
+  FileRevisionHandler(jobject jcallback)
+    : m_jcallback(jcallback),
+      m_call_mid(0)
+    {
+      JNIEnv* env = JNIUtil::getEnv();
+      jclass cls = env->GetObjectClass(jcallback);
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+
+      m_call_mid = env->GetMethodID(
+          cls, "doRevision", "(L"JAVA_PACKAGE"/ISVNRemote$FileRevision;)V");
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+    }
+
+private:
+  void call(const char* path, svn_revnum_t revision,
+           apr_hash_t* revision_props,
+           svn_boolean_t result_of_merge,
+           apr_array_header_t* prop_diffs,
+           apr_pool_t* scratch_pool)
+    {
+      JNIEnv* env = JNIUtil::getEnv();
+      jclass cls = env->FindClass(JAVA_PACKAGE"/ISVNRemote$FileRevision");
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+
+      static jmethodID mid = 0;
+      if (mid == 0)
+        {
+          mid = env->GetMethodID(cls, "<init>",
+                                 "(Ljava/lang/String;JZ"
+                                 "Ljava/util/Map;Ljava/util/Map;)V");
+          if (JNIUtil::isJavaExceptionThrown())
+            return;
+        }
+
+      jstring jpath = JNIUtil::makeJString(path);
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+      jobject jrevprops = CreateJ::PropertyMap(revision_props, scratch_pool);
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+      jobject jpropdelta = CreateJ::PropertyMap(prop_diffs, scratch_pool);
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+
+      env->CallVoidMethod(m_jcallback, m_call_mid,
+                          env->NewObject(cls, mid, jpath, jlong(revision),
+                                         jboolean(result_of_merge),
+                                         jrevprops, jpropdelta));
+      if (JNIUtil::isJavaExceptionThrown())
+        return;
+      env->DeleteLocalRef(jpath);
+      env->DeleteLocalRef(jrevprops);
+      env->DeleteLocalRef(jpropdelta);
+    }
+
+  jobject m_jcallback;
+  jmethodID m_call_mid;
+};
+} // anonymous namespace
+
+void
+RemoteSession::getFileRevisions(jstring jpath,
+                                jlong jstart_revision, jlong jend_revision,
+                                jboolean jinclude_merged_revisions,
+                                jobject jcallback)
+{
+  SVN::Pool subPool(pool);
+  Relpath path(jpath, subPool);
+  if (JNIUtil::isExceptionThrown())
+    return;
+  SVN_JNI_ERR(path.error_occurred(), );
+
+  FileRevisionHandler handler(jcallback);
+  if (JNIUtil::isExceptionThrown())
+    return;
+
+  SVN_JNI_ERR(svn_ra_get_file_revs2(m_session, path.c_str(),
+                                    svn_revnum_t(jstart_revision),
+                                    svn_revnum_t(jend_revision),
+                                    bool(jinclude_merged_revisions),
+                                    handler.callback, &handler,
+                                    subPool.getPool()),);
 }
 
-// TODO: getFileRevisions
 // TODO: lock
 // TODO: unlock
 // TODO: getLock

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.h (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/native/RemoteSession.h Wed Aug  7 00:02:30 2013
@@ -95,8 +95,13 @@ class RemoteSession : public SVNBase
     jobject stat(jstring jpath, jlong jrevision);
     jobject getLocations(jstring jpath, jlong jpeg_revision,
                          jobject jlocation_revisions);
-    jobject getLocationSegments(jstring jpath, jlong jpeg_revision,
-                                jlong jstart_revision, jlong jend_revision);
+    void getLocationSegments(jstring jpath, jlong jpeg_revision,
+                             jlong jstart_revision, jlong jend_revision,
+                             jobject jcallback);
+    void getFileRevisions(jstring jpath,
+                          jlong jstart_revision, jlong jend_revision,
+                          jboolean jinclude_merged_revisions,
+                          jobject jcallback);
     // TODO: getFileRevisions
     // TODO: lock
     // TODO: unlock

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/native/org_apache_subversion_javahl_remote_RemoteSession.cpp
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/native/org_apache_subversion_javahl_remote_RemoteSession.cpp?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/native/org_apache_subversion_javahl_remote_RemoteSession.cpp (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/native/org_apache_subversion_javahl_remote_RemoteSession.cpp Wed Aug  7 00:02:30 2013
@@ -295,20 +295,38 @@ Java_org_apache_subversion_javahl_remote
   return ras->getLocations(jpath, jpeg_revision, jlocation_revisions);
 }
 
-JNIEXPORT jobject JNICALL
+JNIEXPORT void JNICALL
 Java_org_apache_subversion_javahl_remote_RemoteSession_getLocationSegments(
     JNIEnv *env, jobject jthis, jstring jpath, jlong jpeg_revision,
-    jlong jstart_revision, jlong jend_revision)
+    jlong jstart_revision, jlong jend_revision, jobject jcallback)
 {
   JNIEntry(SVNReposAccess, getLocationSegments);
   RemoteSession *ras = RemoteSession::getCppObject(jthis);
-  CPPADDR_NULL_PTR(ras, NULL);
+  CPPADDR_NULL_PTR(ras, );
+
+  if (jcallback == NULL)
+    JNIUtil::throwNullPointerException("handler");
+  ras->getLocationSegments(jpath, jpeg_revision,
+                           jstart_revision, jend_revision,
+                           jcallback);
+}
+
+JNIEXPORT void JNICALL
+Java_org_apache_subversion_javahl_remote_RemoteSession_getFileRevisions(
+    JNIEnv *env, jobject jthis, jstring jpath,
+    jlong jstart_revision, jlong jend_revision,
+    jboolean jinclude_merged_revisions, jobject jcallback)
+{
+  JNIEntry(SVNReposAccess, getFileRevisions);
+  RemoteSession *ras = RemoteSession::getCppObject(jthis);
+  CPPADDR_NULL_PTR(ras, );
 
-  return ras->getLocationSegments(jpath, jpeg_revision,
-                                  jstart_revision, jend_revision);
+  if (jcallback == NULL)
+    JNIUtil::throwNullPointerException("handler");
+  ras->getFileRevisions(jpath, jstart_revision, jend_revision,
+                        jinclude_merged_revisions, jcallback);
 }
 
-// TODO: getFileRevisions
 // TODO: lock
 // TODO: unlock
 // TODO: getLock

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java Wed Aug  7 00:02:30 2013
@@ -470,7 +470,7 @@ public interface ISVNRemote
             throws ClientException;
 
     /**
-     * The object returned from {@link getLocationSegments}.
+     * The object returned from {@link #getLocationSegments}.
      */
     public static class LocationSegment implements java.io.Serializable
     {
@@ -512,7 +512,31 @@ public interface ISVNRemote
     }
 
     /**
-     * Return a lost of segments in the location history of <code>path</code>
+     * Call <code>handler</code> for every segment in the location
+     * history of <code>path</code> at <code>pegRevision</code>,
+     * working backwards in time from <code>startRevision</code> to
+     * <code>endRevision</code>.
+     *
+     * @param path A session-relative path.
+     * @param pegRevision The peg revision to find <code>path</code> in.
+     * @param startRevision The upper bound of the revision range. Use
+     * {@link org.apache.subversion.javahl.types.Revision#SVN_INVALID_REVNUM}
+     *        to indicate HEAD.
+     * @param endRevision The lower bound of the revision range. Use
+     * {@link org.apache.subversion.javahl.types.Revision#SVN_INVALID_REVNUM}
+     *        to trace the history of the object to its origin.
+     * @param handler The callback handler.
+     * @throws ClientException
+     */
+    void getLocationSegments(String path,
+                             long pegRevision,
+                             long startRevision,
+                             long endRevision,
+                             RemoteLocationSegmentsCallback handler)
+            throws ClientException;
+
+    /**
+     * Return a list of segments in the location history of <code>path</code>
      * at <code>pegRevision</code>, working backwards in time from
      * <code>startRevision</code> to <code>endRevision</code>.
      *
@@ -532,18 +556,154 @@ public interface ISVNRemote
                                               long endRevision)
             throws ClientException;
 
-    // TODO: getFileRevisions
+    /**
+     * The object returned by {@link #getFileRevisions}.
+     */
+    public final class FileRevision  implements java.io.Serializable
+    {
+        // Update the serialVersionUID when there is a incompatible change
+        // made to this class.
+        private static final long serialVersionUID = 1L;
+
+        /**
+         * Private constructor called by the native implementation.
+         */
+        private FileRevision(String path, long revision,
+                             boolean resultOfMerge,
+                             Map<String, byte[]> revisionProperties,
+                             Map<String, byte[]> propertiesDelta)
+        {
+            this.path = path;
+            this.revision = revision;
+            this.resultOfMerge = resultOfMerge;
+            this.revisionProperties = revisionProperties;
+            this.propertiesDelta = propertiesDelta;
+        }
+
+        /**
+         * @return The path of the file in this revision.
+         */
+        public String getPath() { return path; }
+
+        /**
+         * @return The revision associated with the path.
+         */
+        public long getRevision() { return revision; }
+
+        /**
+         * @return A flag indicating that this revision was the result
+         * of a merge.
+         */
+        public boolean isResultOfMerge() { return resultOfMerge; }
+
+        /**
+         * @return The list of revision properties.
+         */
+        public Map<String, byte[]> getRevisionProperties()
+        {
+            return revisionProperties;
+        }
+
+        /**
+         * @return The changes that were made to the file's properties
+         * in this revision. This map will contain only added,
+         * modified and deleted properties. Deleted properties will
+         * have <code>null</code> values.
+         */
+        public Map<String, byte[]> getPropertiesDelta()
+        {
+            return propertiesDelta;
+        }
+
+        private String path;
+        private long revision;
+        private boolean resultOfMerge;
+        private Map<String, byte[]> revisionProperties;
+        private Map<String, byte[]> propertiesDelta;
+    }
+
+    /**
+     * Call <code>handler</code> for each of a subset of the
+     * interesting revisions of a file <code>path</code> as seen in
+     * revision <code>endRevision</code>.
+     * <p>
+     * If there is an interesting revision of the file that is less
+     * than or equal to <code>startRevision</code>, the iteration will
+     * begin at that revision.  Otherwise the iteration will begin at
+     * the first revision of the file in the repository, which has to
+     * be less than or equal to <code>endRevision</code>.  Note that
+     * if the function succeeds, <code>handler</code> will be called
+     * at least once.
+     * <p>
+     * <b>Note:</b> This functionality is not available in pre-1.1
+     * servers.  If the server doesn't implement it, an alternative
+     * (but much slower) implementation based on {@link #getLog} is
+     * used.
+     * <p>
+     * <b>Note:</b> With Subversion 1.8 and newer servers this
+     * function supports reversion of the revision range for when
+     * <code>includeMergedRevisions</code> is <code>false</code>.
+     *
+     * @param path A path relative to the session URL.
+     * @param startRevision The lower bound of the revision interval.
+     * @param endRevision the upper bound of the revision interval.
+     * @param includeMergedRevisions When <code>true</code>, revisions that
+     *    contributed to a merge are included in the result.
+     * @throws ClientException
+     */
+    void getFileRevisions(String path,
+                          long startRevision, long endRevision,
+                          boolean includeMergedRevisions,
+                          RemoteFileRevisionsCallback handler)
+            throws ClientException;
+
+    /**
+     * Retrieve a subset of the interesting revisions of a file
+     * <code>path</code> as seen in revision <code>endRevision</code>.
+     * <p>
+     * If there is an interesting revision of the file that is less
+     * than or equal to <code>startRevision</code>, the iteration will
+     * begin at that revision.  Otherwise the iteration will begin at
+     * the first revision of the file in the repository, which has to
+     * be less than or equal to <code>endRevision</code>.  Note that
+     * if the function succeeds, the returned list will contain at
+     * least one element.
+     * <p>
+     * <b>Note:</b> This functionality is not available in pre-1.1
+     * servers.  If the server doesn't implement it, an alternative
+     * (but much slower) implementation based on {@link #getLog} is
+     * used.
+     * <p>
+     * <b>Note:</b> With Subversion 1.8 and newer servers this
+     * function supports reversion of the revision range for when
+     * <code>includeMergedRevisions</code> is <code>false</code>.
+     *
+     * @param path A path relative to the session URL.
+     * @param startRevision The lower bound of the revision interval.
+     * @param endRevision the upper bound of the revision interval.
+     * @param includeMergedRevisions When <code>true</code>, revisions that
+     *    contributed to a merge are included in the result.
+     * @throws ClientException
+     */
+    List<FileRevision> getFileRevisions(String path,
+                                        long startRevision, long endRevision,
+                                        boolean includeMergedRevisions)
+            throws ClientException;
+
+
     // TODO: lock
     // TODO: unlock
     // TODO: getLock
 
     /**
      * Return a dictionary containing all locks on or below the given path.
+     * <p>
+     * <b>Note:</b> It is not considered an error if <code>path</code> does
+     * not exist in HEAD. Such a search will simply return no locks.
+     * <p>
+     * <b>Note:</b>This functionality is not available in pre-1.2 servers.
      * @param path A path relative to the sessionn URL
      * @param depth The recursion depth
-     * @note It is not considered an error for the path to not exist in HEAD.
-     *       Such a search will simply return no locks.
-     * @note This functionality is not available in pre-1.2 servers.
      * @throws ClientException
      */
     Map<String, Lock> getLocks(String path, Depth depth)

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java Wed Aug  7 00:02:30 2013
@@ -34,6 +34,7 @@ import org.apache.subversion.javahl.Oper
 import org.apache.subversion.javahl.ClientException;
 
 import java.lang.ref.WeakReference;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -207,13 +208,68 @@ public class RemoteSession extends JNIOb
             throws ClientException;
 
     public native
-        List<LocationSegment> getLocationSegments(String path,
-                                                  long pegRevision,
-                                                  long startRevision,
-                                                  long endRevision)
+        void getLocationSegments(String path,
+                                 long pegRevision,
+                                 long startRevision,
+                                 long endRevision,
+                                 RemoteLocationSegmentsCallback handler)
             throws ClientException;
 
-    // TODO: getFileRevisions
+    private static class GetLocationSegmentsHandler
+        implements RemoteLocationSegmentsCallback
+    {
+        public List<LocationSegment> locationSegments = null;
+        public void doSegment(LocationSegment locationSegment)
+        {
+            if (locationSegments == null)
+                locationSegments = new ArrayList<LocationSegment>();
+            locationSegments.add(locationSegment);
+        }
+    }
+
+    public List<LocationSegment> getLocationSegments(String path,
+                                                     long pegRevision,
+                                                     long startRevision,
+                                                     long endRevision)
+            throws ClientException
+    {
+        final GetLocationSegmentsHandler handler = new GetLocationSegmentsHandler();
+        getLocationSegments(path, pegRevision, startRevision, endRevision, handler);
+        return handler.locationSegments;
+    }
+
+    public native
+        void getFileRevisions(String path,
+                              long startRevision,
+                              long endRevision,
+                              boolean includeMergedRevisions,
+                              RemoteFileRevisionsCallback handler)
+            throws ClientException;
+
+    private static class GetFileRevisionsHandler
+        implements RemoteFileRevisionsCallback
+    {
+        public List<FileRevision> fileRevisions = null;
+        public void doRevision(FileRevision fileRevision)
+        {
+            if (fileRevisions == null)
+                fileRevisions = new ArrayList<FileRevision>();
+            fileRevisions.add(fileRevision);
+        }
+    }
+
+    public List<FileRevision> getFileRevisions(String path,
+                                               long startRevision,
+                                               long endRevision,
+                                               boolean includeMergedRevisions)
+            throws ClientException
+    {
+        final GetFileRevisionsHandler handler = new GetFileRevisionsHandler();
+        getFileRevisions(path, startRevision, endRevision,
+                         includeMergedRevisions, handler);
+        return handler.fileRevisions;
+    }
+
     // TODO: lock
     // TODO: unlock
     // TODO: getLock

Modified: subversion/branches/log-addressing/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java (original)
+++ subversion/branches/log-addressing/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java Wed Aug  7 00:02:30 2013
@@ -1128,4 +1128,16 @@ public class SVNRemoteTests extends SVNT
         assertEquals(1, seg.getStartRevision());
         assertEquals(1, seg.getEndRevision());
     }
+
+    public void testGetFileRevisions() throws Exception
+    {
+        ISVNRemote session = getSession();
+
+        List<ISVNRemote.FileRevision> result =
+            session.getFileRevisions("iota", 0, 1, false);
+        assertEquals(1, result.size());
+        ISVNRemote.FileRevision rev = result.get(0);
+        assertEquals("/iota", rev.getPath());
+        assertFalse(rev.isResultOfMerge());
+    }
 }

Modified: subversion/branches/log-addressing/subversion/include/private/svn_string_private.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/private/svn_string_private.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/private/svn_string_private.h (original)
+++ subversion/branches/log-addressing/subversion/include/private/svn_string_private.h Wed Aug  7 00:02:30 2013
@@ -264,6 +264,58 @@ svn_cstring__reverse_match_length(const 
 
 /** @} */
 
+/** Prefix trees.
+ *
+ * Prefix trees allow for a space-efficient representation of a set of path-
+ * like strings, i.e. those that share common prefixes.  Any given string
+ * value will be stored only once, i.e. two strings stored in the same tree
+ * are equal if and only if the point to the same #svn_prefix_string__t.
+ *
+ * @defgroup svn_prefix_string Strings in prefix trees.
+* @{
+ */
+
+/**
+ * Opaque data type for prefix-tree-based strings.
+ */
+typedef struct svn_prefix_string__t svn_prefix_string__t;
+
+/**
+ * Opaque data type representing a prefix tree
+ */
+typedef struct svn_prefix_tree__t svn_prefix_tree__t;
+
+/**
+ * Return a new prefix tree allocated in @a pool.
+ */
+svn_prefix_tree__t *
+svn_prefix_tree__create(apr_pool_t *pool);
+
+/**
+ * Return a string with the value @a s stored in @a tree.  If no such string
+ * exists yet, add it automatically.
+ */
+svn_prefix_string__t *
+svn_prefix_string__create(svn_prefix_tree__t *tree,
+                          const char *s);
+
+/**
+ * Return the contents of @a s as a new string object allocated in @a pool.
+ */
+svn_string_t *
+svn_prefix_string__expand(const svn_prefix_string__t *s,
+                          apr_pool_t *pool);
+
+/**
+ * Compare the two strings @a lhs and @a rhs that must be part of the same
+ * tree.
+ */
+int
+svn_prefix_string__compare(const svn_prefix_string__t *lhs,
+                           const svn_prefix_string__t *rhs);
+
+/** @} */
+
 /** @} */
 
 

Modified: subversion/branches/log-addressing/subversion/include/private/svn_subr_private.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/private/svn_subr_private.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/private/svn_subr_private.h (original)
+++ subversion/branches/log-addressing/subversion/include/private/svn_subr_private.h Wed Aug  7 00:02:30 2013
@@ -179,15 +179,6 @@ svn_spillbuf__reader_create(apr_size_t b
                             apr_size_t maxsize,
                             apr_pool_t *result_pool);
 
-/* Create a spill-buffer with extra parameters, and a reader for it. */
-svn_spillbuf_reader_t *
-svn_spillbuf__reader_create_extended(apr_size_t blocksize,
-                                     apr_size_t maxsize,
-                                     svn_boolean_t delete_on_close,
-                                     svn_boolean_t spill_all_contents,
-                                     const char *dirpath,
-                                     apr_pool_t *result_pool);
-
 /* Read @a len bytes from @a reader into @a data. The number of bytes
    actually read is stored in @a amt. If the content is exhausted, then
    @a amt is set to zero. It will always be non-zero if the spill-buffer
@@ -224,19 +215,8 @@ svn_spillbuf__reader_write(svn_spillbuf_
    but implements the same basic sematics of a spillbuf for the underlying
    storage. */
 svn_stream_t *
-svn_stream__from_spillbuf(apr_size_t blocksize,
-                          apr_size_t maxsize,
+svn_stream__from_spillbuf(svn_spillbuf_t *buf,
                           apr_pool_t *result_pool);
-/* Return a stream built on top of a spillbuf, using the same arguments as
-   svn_spillbuf__create_extended(). */
-svn_stream_t *
-svn_stream__from_spillbuf_extended(apr_size_t blocksize,
-                                   apr_size_t maxsize,
-                                   svn_boolean_t delete_on_close,
-                                   svn_boolean_t spill_all_contents,
-                                   const char *dirpath,
-                                   apr_pool_t *result_pool);
-
 
 /** @} */
 

Modified: subversion/branches/log-addressing/subversion/include/svn_error_codes.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/svn_error_codes.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/svn_error_codes.h (original)
+++ subversion/branches/log-addressing/subversion/include/svn_error_codes.h Wed Aug  7 00:02:30 2013
@@ -811,6 +811,31 @@ SVN_ERROR_START
              SVN_ERR_FS_CATEGORY_START + 53,
              "Malformed transaction ID string.")
 
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_FS_ITEM_INDEX_CORRUPTION,
+             SVN_ERR_FS_CATEGORY_START + 54,
+             "Corrupt index file.")
+
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_FS_ITEM_INDEX_REVISION,
+             SVN_ERR_FS_CATEGORY_START + 55,
+             "Revision not covered by index.")
+
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_FS_ITEM_INDEX_OVERFLOW,
+             SVN_ERR_FS_CATEGORY_START + 56,
+             "Item index too large for this revision.")
+
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_FS_CONTAINER_INDEX,
+             SVN_ERR_FS_CATEGORY_START + 57,
+             "Container index out of range.")
+
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_FS_ITEM_INDEX_INCONSISTENT,
+             SVN_ERR_FS_CATEGORY_START + 58,
+             "Index files are inconsistent.")
+
   /* repos errors */
 
   SVN_ERRDEF(SVN_ERR_REPOS_LOCKED,
@@ -1360,6 +1385,11 @@ SVN_ERROR_START
              SVN_ERR_MISC_CATEGORY_START + 40,
              "Bad arguments to SQL operators GLOB or LIKE")
 
+  /** @since New in 1.9. */
+  SVN_ERRDEF(SVN_ERR_CORRUPT_PACKED_DATA,
+             SVN_ERR_MISC_CATEGORY_START + 41,
+             "Packed data stream is corrupt")
+
   /* command-line client errors */
 
   SVN_ERRDEF(SVN_ERR_CL_ARG_PARSING_ERROR,

Modified: subversion/branches/log-addressing/subversion/include/svn_fs.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/svn_fs.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/svn_fs.h (original)
+++ subversion/branches/log-addressing/subversion/include/svn_fs.h Wed Aug  7 00:02:30 2013
@@ -121,6 +121,16 @@ typedef struct svn_fs_t svn_fs_t;
 /** @since New in 1.1. */
 #define SVN_FS_TYPE_FSFS                        "fsfs"
 
+/**
+ * EXPERIMENTAL filesystem backend.
+ *
+ * It is not ready for general production use.  Please consult the
+ * respective release notes on suggested usage scenarios.
+ * 
+ * @since New in 1.9.
+ */
+#define SVN_FS_TYPE_FSX                         "fsx"
+
 /** Create repository format compatible with Subversion versions
  * earlier than 1.4.
  *
@@ -148,6 +158,18 @@ typedef struct svn_fs_t svn_fs_t;
  * @since New in 1.8.
  */
 #define SVN_FS_CONFIG_PRE_1_8_COMPATIBLE        "pre-1.8-compatible"
+
+/** Create repository format compatible with Subversion versions
+ * earlier than 1.9.  The value must be a version in the same format
+ * as #SVN_VER_NUMBER.
+ *
+ * @note The @c patch component would often be ignored, due to our forward
+ * compatibility promises within minor release lines.  It should therefore
+ * usually be set to @c 0.
+ *
+ * @since New in 1.9.
+ */
+#define SVN_FS_CONFIG_COMPATIBLE_VERSION        "compatible-version"
 /** @} */
 
 
@@ -222,6 +244,7 @@ svn_fs_set_warning_func(svn_fs_t *fs,
  *
  *   SVN_FS_TYPE_BDB   Berkeley-DB implementation
  *   SVN_FS_TYPE_FSFS  Native-filesystem implementation
+ *   SVN_FS_TYPE_FSX   Experimental filesystem implementation
  *
  * If @a fs_config is @c NULL or does not contain a value for
  * #SVN_FS_CONFIG_FS_TYPE then the default filesystem type will be used.
@@ -2675,6 +2698,32 @@ typedef struct svn_fs_fsfs_info_t {
      or svn_fs_info_dup(). */
 } svn_fs_fsfs_info_t;
 
+/**
+ * A structure that provides some information about a filesystem.
+ * Returned by svn_fs_info() for #SVN_FS_TYPE_FSX filesystems.
+ *
+ * @note Fields may be added to the end of this structure in future
+ * versions.  Therefore, users shouldn't allocate structures of this
+ * type, to preserve binary compatibility.
+ *
+ * @since New in 1.9.
+ */
+typedef struct svn_fs_fsx_info_t {
+
+  /** Filesystem backend (#fs_type), i.e., the string #SVN_FS_TYPE_FSX. */
+  const char *fs_type;
+
+  /** Shard size, always > 0. */
+  int shard_size;
+
+  /** The smallest revision which is not in a pack file. */
+  svn_revnum_t min_unpacked_rev;
+
+  /* If you add fields here, check whether you need to extend svn_fs_info()
+     or svn_fs_info_dup(). */
+
+} svn_fs_fsx_info_t;
+
 /** @see svn_fs_info()
  * @since New in 1.9. */
 typedef struct svn_fs_info_placeholder_t {

Modified: subversion/branches/log-addressing/subversion/include/svn_sorts.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/svn_sorts.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/svn_sorts.h (original)
+++ subversion/branches/log-addressing/subversion/include/svn_sorts.h Wed Aug  7 00:02:30 2013
@@ -217,6 +217,77 @@ void
 svn_sort__array_reverse(apr_array_header_t *array,
                         apr_pool_t *scratch_pool);
 
+/** Priority queues.
+ *
+ * @defgroup svn_priority_queue__t Priority Queues
+ * @{
+ */
+
+/**
+ * We implement priority queues on top of existing ELEMENTS arrays.  They
+ * provide us with memory management and very basic element type information.
+ *
+ * The extraction order is being defined by a comparison function similar
+ * to the ones used with qsort.  The first element in the queue is always
+ * on with COMPARISON_FUNC(first,element) <= 0, for all elements in the
+ * queue.
+ */
+
+/**
+ * Opaque data type for priority queues.
+ */
+typedef struct svn_priority_queue__t svn_priority_queue__t;
+
+/**
+ * Return a priority queue containing all provided @a elements and prioritize
+ * them according to @a compare_func.
+ *
+ * @note The priority queue will use the existing @a elements array for data
+ * storage.  So, you must not manipulate that array while using the queue.
+ * Also, the lifetime of the queue is bound to that of the array.
+ */
+svn_priority_queue__t *
+svn_priority_queue__create(apr_array_header_t *elements,
+                           int (*compare_func)(const void *, const void *));
+
+/**
+ * Returns the number of elements in the @a queue.
+ */
+apr_size_t
+svn_priority_queue__size(svn_priority_queue__t *queue);
+
+/**
+ * Returns a reference to the first element in the @a queue.  The queue
+ * contents remains unchanged.  If the @a queue is empty, #NULL will be
+ * returned.
+ */
+void *
+svn_priority_queue__peek(svn_priority_queue__t *queue);
+
+/**
+ * Notify the @a queue after modifying the first item as returned by
+ * #svn_priority_queue__peek.
+ */
+void
+svn_priority_queue__update(svn_priority_queue__t *queue);
+
+/**
+ * Remove the first element from the @a queue.  This is a no-op for empty
+ * queues.
+ */
+void
+svn_priority_queue__pop(svn_priority_queue__t *queue);
+
+/**
+ * Append the new @a element to the @a queue.  @a element must neither be
+ * #NULL nor the first element as returned by #svn_priority_queue__peek.
+ */
+void
+svn_priority_queue__push(svn_priority_queue__t *queue, const void *element);
+
+/** @} */
+
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */

Modified: subversion/branches/log-addressing/subversion/include/svn_string.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/include/svn_string.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/include/svn_string.h (original)
+++ subversion/branches/log-addressing/subversion/include/svn_string.h Wed Aug  7 00:02:30 2013
@@ -313,6 +313,16 @@ svn_stringbuf_appendbytes(svn_stringbuf_
                           const char *bytes,
                           apr_size_t count);
 
+/** Append @a byte @a count times onto @a targetstr.
+ *
+ * reallocs if necessary. @a targetstr is affected, nothing else is.
+ * @since New in 1.9.
+ */
+void
+svn_stringbuf_appendfill(svn_stringbuf_t *targetstr,
+                         char byte,
+                         apr_size_t count);
+
 /** Append the stringbuf @c appendstr onto @a targetstr.
  *
  * reallocs if necessary. @a targetstr is affected, nothing else is.

Modified: subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.c Wed Aug  7 00:02:30 2013
@@ -84,6 +84,17 @@ static struct fs_type_defn base_defn =
     NULL
   };
 
+static struct fs_type_defn fsx_defn =
+  {
+    SVN_FS_TYPE_FSX, "x",
+#ifdef SVN_LIBSVN_FS_LINKS_FS_X
+    svn_fs_x__init,
+#else
+    NULL,
+#endif
+    &base_defn
+  };
+
 static struct fs_type_defn fsfs_defn =
   {
     SVN_FS_TYPE_FSFS, "fs",
@@ -92,7 +103,7 @@ static struct fs_type_defn fsfs_defn =
 #else
     NULL,
 #endif
-    &base_defn
+    &fsx_defn
   };
 
 static struct fs_type_defn *fs_modules = &fsfs_defn;

Modified: subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.h (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs/fs-loader.h Wed Aug  7 00:02:30 2013
@@ -171,6 +171,9 @@ svn_error_t *svn_fs_base__init(const svn
 svn_error_t *svn_fs_fs__init(const svn_version_t *loader_version,
                              fs_library_vtable_t **vtable,
                              apr_pool_t* common_pool);
+svn_error_t *svn_fs_x__init(const svn_version_t *loader_version,
+                            fs_library_vtable_t **vtable,
+                            apr_pool_t* common_pool);
 
 
 

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_base/lock.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_base/lock.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_base/lock.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_base/lock.c Wed Aug  7 00:02:30 2013
@@ -465,8 +465,9 @@ svn_fs_base__get_locks(svn_fs_t *fs,
   args.path = svn_fs__canonicalize_abspath(path, pool);
   args.depth = depth;
   /* Enough for 100+ locks if the comments are small. */
-  args.stream = svn_stream__from_spillbuf(4 * 1024  /* blocksize */,
-                                          64 * 1024 /* maxsize */,
+  args.stream = svn_stream__from_spillbuf(svn_spillbuf__create(4 * 1024  /* blocksize */,
+                                                               64 * 1024 /* maxsize */,
+                                                               pool),
                                           pool);
   SVN_ERR(svn_fs_base__retry_txn(fs, txn_body_get_locks, &args, FALSE, pool));
 

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/fs.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/fs.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/fs.h (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/fs.h Wed Aug  7 00:02:30 2013
@@ -232,7 +232,7 @@ typedef struct fs_fs_dag_cache_t fs_fs_d
 /* Key type for all caches that use revision + offset / counter as key.
 
    NOTE: always initialize this using calloc() or '= {0};'!  This is used
-   as a cahe key and the padding bytes on 32 bit archs should be zero for
+   as a cache key and the padding bytes on 32 bit archs should be zero for
    cache effectiveness. */
 typedef struct pair_cache_key_t
 {
@@ -476,7 +476,7 @@ typedef struct representation_t
    * the fulltext size is equal to representation size in the rev file, */
   svn_filesize_t expanded_size;
 
-  /* Is this representation a transaction? */
+  /* Is this a representation (still) within a transaction? */
   svn_fs_fs__id_part_t txn_id;
 
   /* For rep-sharing, we need a way of uniquifying node-revs which share the
@@ -485,7 +485,10 @@ typedef struct representation_t
      intra-node uniqification content. */
   struct
     {
-      svn_fs_fs__id_part_t txn_id;
+      /* unique context, i.e. txn ID, in which the noderev (!) got created */
+      svn_fs_fs__id_part_t noderev_txn_id;
+
+      /* unique value within that txn */
       apr_uint64_t number;
     } uniquifier;
 } representation_t;

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/hotcopy.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/hotcopy.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/hotcopy.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/hotcopy.c Wed Aug  7 00:02:30 2013
@@ -340,8 +340,9 @@ hotcopy_copy_packed_shard(svn_revnum_t *
   if (*dst_min_unpacked_rev < rev + max_files_per_dir)
     {
       *dst_min_unpacked_rev = rev + max_files_per_dir;
-      SVN_ERR(svn_fs_fs__write_revnum_file(dst_fs, *dst_min_unpacked_rev,
-                                           scratch_pool));
+      SVN_ERR(svn_fs_fs__write_min_unpacked_rev(dst_fs,
+                                                *dst_min_unpacked_rev,
+                                                scratch_pool));
     }
 
   return SVN_NO_ERROR;

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/id.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/id.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/id.h (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/id.h Wed Aug  7 00:02:30 2013
@@ -29,9 +29,13 @@
 extern "C" {
 #endif /* __cplusplus */
 
-/* A rev node ID in FSFS consists of a 3 of sub-IDs ("parts") that consist
- * of a creation REVISION number and some revision-local counter value
- * (NUMBER).  Old-style ID parts use global counter values.
+/* Node-revision IDs in FSFS consist of 3 of sub-IDs ("parts") that consist
+ * of a creation REVISION number and some revision- / transaction-local
+ * counter value (NUMBER).  Old-style ID parts use global counter values.
+ *
+ * The parts are: node_id, copy_id and txn_id for in-txn IDs as well as
+ * node_id, copy_id and rev_offset for in-revision IDs.  This struct the
+ * data structure used for each of those parts.
  */
 typedef struct svn_fs_fs__id_part_t
 {

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/low_level.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/low_level.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/low_level.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/low_level.c Wed Aug  7 00:02:30 2013
@@ -598,7 +598,7 @@ svn_fs_fs__parse_representation(represen
     return svn_error_create(SVN_ERR_FS_CORRUPT, NULL,
                             _("Malformed text representation offset line in node-rev"));
 
-  SVN_ERR(svn_fs_fs__id_txn_parse(&rep->uniquifier.txn_id, str));
+  SVN_ERR(svn_fs_fs__id_txn_parse(&rep->uniquifier.noderev_txn_id, str));
 
   str = svn_cstring_tokenize(" ", &string);
   if (str == NULL || *str != '_')
@@ -846,11 +846,8 @@ svn_fs_fs__unparse_representation(repres
            format_digest(rep->md5_digest, svn_checksum_md5, FALSE, pool),
            format_digest(rep->sha1_digest, svn_checksum_sha1,
                          !rep->has_sha1, pool),
-           svn_fs_fs__id_txn_unparse(&rep->uniquifier.txn_id, pool),
+           svn_fs_fs__id_txn_unparse(&rep->uniquifier.noderev_txn_id, pool),
            buffer);
-
-#undef DISPLAY_MAYBE_NULL_CHECKSUM
-
 }
 
 

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/pack.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/pack.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/pack.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/pack.c Wed Aug  7 00:02:30 2013
@@ -344,7 +344,7 @@ pack_shard(const char *revs_dir,
     }
 
   /* Update the min-unpacked-rev file to reflect our newly packed shard. */
-  SVN_ERR(svn_fs_fs__write_revnum_file(fs,
+  SVN_ERR(svn_fs_fs__write_min_unpacked_rev(fs,
                           (svn_revnum_t)((shard + 1) * max_files_per_dir),
                           pool));
   ffd->min_unpacked_rev = (svn_revnum_t)((shard + 1) * max_files_per_dir);

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/transaction.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/transaction.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/transaction.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/transaction.c Wed Aug  7 00:02:30 2013
@@ -1381,7 +1381,7 @@ set_uniquifier(svn_fs_t *fs,
   svn_fs_fs__id_part_t temp;
 
   SVN_ERR(get_new_txn_node_id(&temp, fs, &rep->txn_id, pool));
-  rep->uniquifier.txn_id = rep->txn_id;
+  rep->uniquifier.noderev_txn_id = rep->txn_id;
   rep->uniquifier.number = temp.number;
 
   return SVN_NO_ERROR;

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.c
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.c?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.c (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.c Wed Aug  7 00:02:30 2013
@@ -354,9 +354,9 @@ svn_fs_fs__update_min_unpacked_rev(svn_f
 }
 
 svn_error_t *
-svn_fs_fs__write_revnum_file(svn_fs_t *fs,
-                             svn_revnum_t revnum,
-                             apr_pool_t *scratch_pool)
+svn_fs_fs__write_min_unpacked_rev(svn_fs_t *fs,
+                                  svn_revnum_t revnum,
+                                  apr_pool_t *scratch_pool)
 {
   const char *final_path;
   char buf[SVN_INT64_BUFFER_SIZE];

Modified: subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.h
URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.h?rev=1511151&r1=1511150&r2=1511151&view=diff
==============================================================================
--- subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.h (original)
+++ subversion/branches/log-addressing/subversion/libsvn_fs_fs/util.h Wed Aug  7 00:02:30 2013
@@ -262,15 +262,13 @@ svn_error_t *
 svn_fs_fs__update_min_unpacked_rev(svn_fs_t *fs,
                                    apr_pool_t *pool);
 
-/* Write a file FILENAME in directory FS_PATH, containing a single line
- * with the number REVNUM in ASCII decimal.  Move the file into place
- * atomically, overwriting any existing file.
- *
- * Similar to write_current(). */
+/* Atomically update the 'min-unpacked-rev' file in FS to hold the specifed
+ * REVNUM.  Perform temporary allocations in SCRATCH_POOL.
+ */
 svn_error_t *
-svn_fs_fs__write_revnum_file(svn_fs_t *fs,
-                             svn_revnum_t revnum,
-                             apr_pool_t *scratch_pool);
+svn_fs_fs__write_min_unpacked_rev(svn_fs_t *fs,
+                                  svn_revnum_t revnum,
+                                  apr_pool_t *scratch_pool);
 
 /* Atomically update the 'current' file to hold the specifed REV,
    NEXT_NODE_ID, and NEXT_COPY_ID.  (The two next-ID parameters are