[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r29076 - in trunk/subversion/libsvn_fs_base: . bdb util

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: Wed, 30 Jan 2008 10:42:32 -0800

Hi Mike

On Jan 29, 2008 12:37 PM, <cmpilato_at_tigris.org> wrote:
> Author: cmpilato
> Date: Tue Jan 29 12:37:29 2008
> New Revision: 29076
> Log:
> Bump the libsvn_fs_base format number, and disallow node-origin and
> mergeinfo calculations and queries on older versions of the schema.
> Honor the --pre-1.5-compatible flag provided by 'svnadmin create', and
> don't auto-upgrade the schema.

After this commit this Ruby bindings test (annotated and slightly modified for
clarity) fails...
    # Do something we can test against in the test repo
    log = "sample log"
    file = "hello.txt"
    path = File.join(@wc_path, file)

    ctx = make_context(log)
    commit_info = ctx.commit(@wc_path)
    rev = commit_info.revision

    # Things are as we expect
    assert_equal(log, ctx.log_message(path, rev))

    # Move wholesale the repo folders into a new place
    backup_path = File.join(@tmp_path, "back")

    FileUtils.mv(@fs.path, backup_path)

    # Assert that the repo is wacky
    assert_raises(Svn::Error::RaLocalReposOpenFailed) do
      ctx.log_message(path, rev)

    # Hotcopy from our new place back to the repo location
    Svn::Fs.hotcopy(backup_path, @fs.path)

    # Things are okay again
    assert_equal(log, ctx.log_message(path, rev))
like this:

test\test_fs.rb -n test_hotcopy
Loaded suite test_fs.rb
Finished in 3.254 seconds.

  1) Error:
D:\SVN\src-trunk\subversion\libsvn_subr\io.c:2626 Can't open file
'test\repos\db\format': The file exists.
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:in `_hotcopy'
D:/SVN/src-trunk/subversion/bindings/swig/ruby/svn/fs.rb:47:in `hotcopy'

1 tests, 2 assertions, 0 failures, 1 errors

I put traces in svn_io_file_open() and reverted this commit. Before this
change svn_fs_hotcopy() only opened 'test\repos\db\format' once. I reapplied
the changes and sure enough, we are trying to open it a second time.

Perhaps this is not a reasonable test? Or did the bindings test catch

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-01-30 19:42:44 CET

This is an archived mail posted to the Subversion Dev mailing list.