Source

SCons / src / engine / SCons / Tool / Subversion.xml

<!--
__COPYRIGHT__

This file is processed by the bin/SConsDoc.py module.
See its __doc__ string for a discussion of the format.
-->
<!--
<tool name="Subversion">
<summary>
Sets construction variables for interacting with Subversion.
</summary>
<sets>
SVN
SVNFLAGS
SVNCOM
</sets>
<uses>
SVNCOMSTR
</uses>
</tool>
-->

<!--
<cvar name="SVN">
<summary>
The Subversion executable (usually named
<command>svn</command>).
</summary>
</cvar>
-->

<!--
<cvar name="SVNCOM">
<summary>
The command line used to
fetch source files from a Subversion repository.
</summary>
</cvar>
-->

<!--
<cvar name="SVNFLAGS">
<summary>
General options that are passed to Subversion.
</summary>
</cvar>
-->

<!--
<scons_function name="Subversion">
<arguments signature="global">
(repository, module)
</arguments>
<summary>
A factory function that
returns a Builder object
to be used to fetch source files
from the specified Subversion
<varname>repository</varname>.
The returned Builder
is intended to be passed to the
&f-link-SourceCode;
function.

The optional specified
<varname>module</varname>
will be added to the beginning
of all repository path names;
this can be used, in essence,
to strip initial directory names
from the repository path names,
so that you only have to
replicate part of the repository
directory hierarchy in your
local build directory.

This function is deprecated, see the entry for the
&f-SourceCode;
function.

Example:

<example>
# Will fetch foo/bar/src.c
# from /usr/local/Subversion/foo/bar/src.c.
env.SourceCode('.', env.Subversion('file:///usr/local/Subversion'))

# Will fetch bar/src.c
# from /usr/local/Subversion/foo/bar/src.c.
env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo'))

# Will fetch src.c
# from /usr/local/Subversion/foo/bar/src.c.
env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo/bar'))
</example>
</summary>
</scons_function>
-->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.