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

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/perl/native/t/8lock.t

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

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
my $repos;
39
39
 
 
40
# TEST
40
41
ok($repos = SVN::Repos::create("$repospath", undef, undef, undef, undef),
41
42
   "create repository at $repospath");
42
43
 
43
44
my $fs = $repos->fs;
44
45
 
45
46
my $acc = SVN::Fs::create_access('foo');
 
47
# TEST
46
48
is($acc->get_username, 'foo');
47
49
$fs->set_access($acc);
48
50
 
58
60
 
59
61
$fs->lock('/testfile', $token, 'we hate software', 0, 0, $fs->youngest_rev, 0);
60
62
 
 
63
# TEST
61
64
ok(my $lock = $fs->get_lock('/testfile'));
 
65
# TEST
62
66
is($lock->token, $token);
 
67
# TEST
63
68
is($lock->owner, 'foo');
64
69
 
65
70
$acc = SVN::Fs::create_access('fnord');
 
71
# TEST
66
72
is($acc->get_username, 'fnord');
67
73
$fs->set_access($acc);
68
74
 
70
76
$fs->lock('/testfile', $token, 'we hate software', 0, 0, $fs->youngest_rev, 0);
71
77
};
72
78
 
 
79
# TEST
73
80
like($@, qr/already locked/);
74
81
 
75
82
eval {
76
83
$fs->unlock('/testfile', 'software', 0)
77
84
};
 
85
# TEST
78
86
like($@, qr/no such lock/);
79
87
 
80
88
$fs->unlock('/testfile', 'software', 1);