view release on metacpan or search on metacpan
src/subversion/LICENSE view on Meta::CPAN
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
src/subversion/build/generator/ezt.py view on Meta::CPAN
[QUAL_NAME QUAL_NAME ...]
The first value defines a substitution format, specifying constant
text and indices of the additional arguments. The arguments are then
substituted and the resulting is inserted into the output stream.
Example:
["abc %0 def %1 ghi %0" foo bar.baz]
Note that the first value can be any type of qualified name -- a string
constant or a variable reference. Use %% to substitute a percent sign.
Argument indices are 0-based.
[include "filename"] or [include QUAL_NAME]
This directive is replaced by content of the named include file. Note
that a string constant is more efficient -- the target file is compiled
inline. In the variable form, the target file is compiled and executed
at runtime.
[insertfile "filename"] or [insertfile QUAL_NAME]
src/subversion/build/libtool.m4 view on Meta::CPAN
AC_LANG_POP
])# _LT_LANG_CXX_CONFIG
# _LT_FUNC_STRIPNAME_CNF
# ----------------------
# func_stripname_cnf prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
#
# This function is identical to the (non-XSI) version of func_stripname,
# except this one can be used by m4 code that may be executed by configure,
# rather than the libtool script.
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
AC_REQUIRE([_LT_DECL_SED])
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
func_stripname_cnf ()
{
src/subversion/build/ltmain.sh view on Meta::CPAN
esac
func_quote_for_expand_result=$_G_arg
}
# func_stripname PREFIX SUFFIX NAME
# ---------------------------------
# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
if test yes = "$_G_HAVE_XSI_OPS"; then
eval 'func_stripname ()
{
$debug_cmd
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
# positional parameters, so assign one to ordinary variable first.
func_stripname_result=$3
func_stripname_result=${func_stripname_result#"$1"}
src/subversion/subversion/include/private/svn_cache.h view on Meta::CPAN
svn_error_t *
svn_cache__make_memcache_from_config(svn_memcache_t **memcache_p,
svn_config_t *config,
apr_pool_t *result_pool);
/**
* Creates a new membuffer cache object in @a *cache. It will contain
* up to @a total_size bytes of data, using @a directory_size bytes
* for index information and the remainder for serialized objects.
*
* Since each index entry is about 50 bytes long, 1 to 10 percent of
* the @a total_size should be allocated to the @a directory_size,
* depending on the average serialized object size. Higher percentages
* will generally result in higher hit rates and reduced conflict
* resolution overhead.
*
* The cache will be split into @a segment_count segments of equal size.
* A higher number reduces lock contention but also limits the maximum
* cachable item size. If it is not a power of two, it will be rounded
* 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.
*
src/subversion/subversion/include/svn_dirent_uri.h view on Meta::CPAN
*
* This library makes a clear distinction between several path formats:
*
* - a dirent is a path on (local) disc or a UNC path (Windows) in
* either relative or absolute format.
* Examples:
* "/foo/bar", "X:/temp", "//server/share", "A:/" (Windows only), ""
* But not:
* "http://server"
*
* - a uri, for our purposes, is a percent-encoded, absolute path
* (URI) that starts with a schema definition. In practice, these
* tend to look like URLs, but never carry query strings.
* Examples:
* "http://server", "file:///path/to/repos",
* "svn+ssh://user@host:123/My%20Stuff/file.doc"
* But not:
* "file", "dir/file", "A:/dir", "/My%20Stuff/file.doc", ""
*
* - a relative path (relpath) is an unrooted path that can be joined
* to any other relative path, uri or dirent. A relative path is
src/subversion/subversion/libsvn_delta/text_delta.c view on Meta::CPAN
assert(op->offset + op->length <= window->sview_len);
fast_memcpy(tbuf + tpos, sbuf + op->offset, buf_len);
break;
case svn_txdelta_target:
/* Copy from target area. We can't use memcpy() or the like
* since we need a specific semantics for overlapping copies:
* they must result in repeating patterns.
* Note that most copies won't have overlapping source and
* target ranges (they are just a result of self-compressed
* data) but a small percentage will. */
assert(op->offset < tpos);
patterning_copy(tbuf + tpos, tbuf + op->offset, buf_len);
break;
case svn_txdelta_new:
/* Copy from window new area. */
assert(op->offset + op->length <= window->new_data->len);
fast_memcpy(tbuf + tpos,
window->new_data->data + op->offset,
buf_len);
src/subversion/subversion/libsvn_subr/config_file.c view on Meta::CPAN
"" NL
" true false" NL
" yes no" NL
" on off" NL
" 1 0" NL
"" NL
" - When a value is a list, it is comma-separated. Again, the" NL
" whitespace around each element of the list is trimmed." NL
"" NL
" - Option values may be expanded within a value by enclosing the" NL
" option name in parentheses, preceded by a percent sign and" NL
" followed by an 's':" NL
"" NL
" %(name)s" NL
"" NL
" The expansion is performed recursively and on demand, during" NL
" svn_option_get. The name is first searched for in the same" NL
" section, then in the special [DEFAULT] section. If the name" NL
" is not found, the whole '%(name)s' placeholder is left" NL
" unchanged." NL
"" NL
src/subversion/subversion/tests/cmdline/commit_tests.py view on Meta::CPAN
# Make some convenient paths.
hash_dir = sbox.ospath('#hash#')
nasty_dir = os.path.join(wc_dir, nasty_name)
space_path = sbox.ospath('A/D/space path')
bang_path = sbox.ospath('A/D/H/bang!')
bracket_path = sbox.ospath('A/D/H/bra[ket')
brace_path = sbox.ospath('A/D/H/bra{e')
angle_path = os.path.join(wc_dir, 'A', 'D', 'H', angle_name)
paren_path = sbox.ospath('A/D/pare)(theses')
percent_path = sbox.ospath('#hash#/percen%')
nasty_path = os.path.join(wc_dir, 'A', nasty_name)
os.mkdir(hash_dir)
os.mkdir(nasty_dir)
svntest.main.file_append(space_path, "This path has a space in it.")
svntest.main.file_append(bang_path, "This path has a bang in it.")
svntest.main.file_append(bracket_path, "This path has a bracket in it.")
svntest.main.file_append(brace_path, "This path has a brace in it.")
svntest.main.file_append(angle_path, "This path has angle brackets in it.")
svntest.main.file_append(paren_path, "This path has parentheses in it.")
svntest.main.file_append(percent_path, "This path has a percent in it.")
svntest.main.file_append(nasty_path, "This path has all sorts of ick in it.")
add_list = [hash_dir,
nasty_dir, # not xml-safe
space_path,
bang_path,
bracket_path,
brace_path,
angle_path, # not xml-safe
paren_path,
percent_path,
nasty_path, # not xml-safe
]
for item in add_list:
svntest.main.run_svn(None, 'add', '--depth=empty', item)
expected_output = svntest.wc.State(wc_dir, {
'#hash#' : Item(verb='Adding'),
nasty_name : Item(verb='Adding'),
'A/D/space path' : Item(verb='Adding'),
'A/D/H/bang!' : Item(verb='Adding'),
src/subversion/subversion/tests/cmdline/lock_tests.py view on Meta::CPAN
h.set_debuglevel(9)
h.request('LOCK', sbox.repo_url + '/iota', '', lock_headers)
# XFAIL Refreshing of DAV lock fails with error '412 Precondition Failed'
r = h.getresponse()
if r.status != httplib.OK:
raise svntest.Failure('Lock refresh failed: %d %s' % (r.status, r.reason))
@SkipUnless(svntest.main.is_ra_type_dav)
def delete_locked_file_with_percent(sbox):
"lock and delete a file called 'a %( ) .txt'"
sbox.build()
locked_filename = 'a %( ) .txt'
locked_path = sbox.ospath(locked_filename)
svntest.main.file_write(locked_path, "content\n")
sbox.simple_add(locked_filename)
sbox.simple_commit()
sbox.simple_lock(locked_filename)
sbox.simple_rm(locked_filename)
# XFAIL: With a 1.8.x client, this commit fails with:
# svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/svn-test-work/repositories/lock_tests-52/!svn/txr/2-2/a%20%25(%20)%20.txt'
# and the following error in the httpd error log:
# Invalid percent encoded URI in tagged If-header [400, #104]
sbox.simple_commit()
########################################################################
# Run the tests
# list all tests here, starting with None:
test_list = [ None,
lock_file,
commit_file_keep_lock,
commit_file_unlock,
src/subversion/subversion/tests/cmdline/lock_tests.py view on Meta::CPAN
block_unlock_if_pre_unlock_hook_fails,
lock_invalid_token,
lock_multi_wc,
locks_stick_over_switch,
lock_unlock_deleted,
commit_stolen_lock,
drop_locks_on_parent_deletion,
dav_lock_timeout,
non_root_locks,
dav_lock_refresh,
delete_locked_file_with_percent,
]
if __name__ == '__main__':
svntest.main.run_tests(test_list)
# NOTREACHED
### End of file.
src/subversion/tools/dev/fsfs-reorg.c view on Meta::CPAN
return SVN_NO_ERROR;
}
/* Return the maximum number of decimal digits required to represent offsets
* in the given PACK file.
*/
static apr_size_t
get_max_offset_len(const revision_pack_t *pack)
{
/* the pack files may grow a few percent.
* Fudge it up to be on safe side.
*/
apr_size_t max_future_size = pack->filesize * 2 + 10000;
apr_size_t result = 0;
while (max_future_size > 0)
{
++result;
max_future_size /= 10;
}
src/subversion/tools/dev/trails.py view on Meta::CPAN
ops = []
for (txn_body, trail) in trails:
ops.append(len(trail))
total_trails = len(ops)
frequencies = list_frequencies(ops)
outfile.write(_seperator)
outfile.write('Trail length frequencies\n')
outfile.write(_seperator)
outfile.write('ops/trail frequency percentage\n')
for (r, f) in frequencies:
p = float(f) * 100 / total_trails
outfile.write('%4i %6i %5.2f\n' % (r, f, p))
outfile.write('\n')
def output_trail(outfile, trail, column = 0):
### Output the trail itself, in its own column
if len(trail) == 0:
src/subversion/tools/dev/trails.py view on Meta::CPAN
ttrails = []
for (txn_body, trail) in trails:
ttrails.append((txn_body, tuple(trail)))
frequencies = list_frequencies(ttrails)
outfile.write(_seperator)
outfile.write('Trail frequencies\n')
outfile.write(_seperator)
outfile.write('frequency percentage ops/trail trail\n')
for (((txn_body, file, line), trail), f) in frequencies:
p = float(f) * 100 / total_trails
outfile.write('-- %s - %s:%u --\n' % (txn_body, file, line))
outfile.write('%6i %5.2f %4i ' % (f, p, len(trail)))
output_trail(outfile, trail, 37)
def output_txn_body_frequencies(trails, outfile):
bodies = []
for (txn_body, trail) in trails:
bodies.append(txn_body)
total_trails = len(trails)
frequencies = list_frequencies(bodies)
outfile.write(_seperator)
outfile.write('txn_body frequencies\n')
outfile.write(_seperator)
outfile.write('frequency percentage txn_body\n')
for ((txn_body, file, line), f) in frequencies:
p = float(f) * 100 / total_trails
outfile.write('%6i %5.2f %s - %s:%u\n'
% (f, p, txn_body, file, line))
def usage(pgm):
w = sys.stderr.write
w("%s: a program for analyzing Subversion trail usage statistics.\n" % pgm)
w("\n")