def test_retrieve_and_change_rev_prop(self): """Test playing with revprops""" self.assertEqual(repos.fs_revision_prop(self.repos, self.rev, "svn:log", _authz_callback), "''(a few years later)'' Argh... v1.1 was buggy, " "after all") # We expect this to complain because we have no pre-revprop-change # hook script for the repository. self.assertRaises(SubversionException, repos.fs_change_rev_prop3, self.repos, self.rev, "jrandom", "svn:log", "Youngest revision", True, True, _authz_callback) repos.fs_change_rev_prop3(self.repos, self.rev, "jrandom", "svn:log", "Youngest revision", False, False, _authz_callback) self.assertEqual(repos.fs_revision_prop(self.repos, self.rev, "svn:log", _authz_callback), "Youngest revision")
def test_retrieve_and_change_rev_prop(self): """Test playing with revprops""" self.assertEqual( repos.fs_revision_prop(self.repos, self.rev, "svn:log", _authz_callback), "''(a few years later)'' Argh... v1.1 was buggy, " "after all") # We expect this to complain because we have no pre-revprop-change # hook script for the repository. self.assertRaises(SubversionException, repos.fs_change_rev_prop3, self.repos, self.rev, "jrandom", "svn:log", "Youngest revision", True, True, _authz_callback) repos.fs_change_rev_prop3(self.repos, self.rev, "jrandom", "svn:log", "Youngest revision", False, False, _authz_callback) self.assertEqual( repos.fs_revision_prop(self.repos, self.rev, "svn:log", _authz_callback), "Youngest revision")