Friday, July 24, 2009

Options: Episode-2

-- recursive(-R) and --non-recursive(-N)
Most of the SVN subcommands recurs subdirectories by default. Only few subcommands that have the potential to remove or undo the modifications in the local directories do not recurs. “--recursive” option is used on those subcommands. “-R” is the short form of this option.
As most of the svn subcommands recurs subdirectories by default, this option could be used if the user does not want the command to be executed on the subdirectories. These options are deprecated.

--quiet(-q)
This option could be used by the user if he wants only the essential information to be printed while performing a operation and filter others. This option could be combined with other options to produce filtered outputs. E.g.: when this is combined with “--verbose” option for “log” subcommand, then it outputs only the filenames. When this is combined with “--version” option it prints only the version number in a compact form.

--targets
Many subcommands can operate on a multiple files at a time. So instead of giving the file names in the command prompt the file names could be written in a file and the user could pass that filename with this option. Then svn retrieves the list of names of the file to operate on from this file.

--help(-h, -?)
If this option is used alone, then it displays the general client help text. If used with any subcommands, then it displays the built-in help text for each subcommand. “-h” and “-?” are the short form of this option.

--version(-v)
This option when used without any subcommands prints the version information of the svn. This information not only includes the version number of the client, but also a listing of all repository access modules that the client can use to access a Subverison repository. When used with “--quiet” option it prints only the version number in a compact form. When used with “svnserve” it displays version information and a list of repository backend modules available, and then exits.
When svn needs to contact remote repository, it makes a network requests to the server and the server responds. The client attempt to access the URL, and depending on the URL scheme, a particular protocol is used to contact the server. These network protocol details are hidden from the user. The user can use this option to view these information.

No comments:

Post a Comment