Command line interface cross referenceThis section specifies the equivalent Subversion commands for each action in the
Syncro SVN Client action. Actions commands reference-
svn checkout [--revision rev] URL PATH
--revision rev specifies the desired revision(if
necessary). URL is the repository URL you want to check out
from. PATH is the location on the file system.
-
svn update [--revision rev] PATH
--revision rev specifies the desired revision(if
necessary). PATH is the location on the file system of the resource
to update.
There are two behaviours for the update action in Syncro SVN client. If invoked from
the Synchronize View, it updates the resources to the HEAD revision. If invoked from the
Working Copy view it always updates to the HEAD revision. -
svn commit -m "log message" [--no-unlock] PATH...
-m "log message" specifies the commit comment. --no unlock specifies that the resource should keep locks
after commit if this is the case. PATH is the location on the file system of the resource
to commit. Can be more than one.
-
svn diff --revision rev1:rev2 PATH
--revision rev1:rev2 specifies the desired revisions to
be compared. PATH is the location on the file system of the resource
to be compared.
If you use the Compare with latest from HEAD from the Working copy view you will be comparing the local
file with the HEAD revision file. If you use Compare with BASE
revision the local file will be compared with the pristine copy. From the
Synchronize view you can compare the working copy
file with the HEAD revision file. You can choose to compare the local file with an older
revision or two revisions of the same file from the History
view. -
svn log [--revision rev1:rev2] [--limit N] --verbose PATH
--revision rev1:rev2 - specifies the range of revisions
for which to obtain the log. --limit N - limits the number of log messages to
N. --verbose - gives detailed information about the
operation.
Syncro SVN Client uses by default the --limit option in order to
obtain only 50 log messages. -
svn status --verbose PATH
--verbose - specifies that the status of all files should
be reported. PATH - The location on the file system to get status
for.
-
svn status --show-updates PATH
--show-updates - get the resource status by contacting
the repository. PATH - The location on the file system to get status
for.
-
svn import -m "log message" PATH URL
-m "log message" - specifies the commit log
message PATH - the local path to the resource on the file
system. URL - the URL on the repository where the resource will
be imported.
-
svn export [--revision rev] URL PATH
--revision rev specifies the desired revision(if
necessary). URL is the repository URL you want to export from. PATH is the location on the file system where to
export.
-
svn info [--revision HEAD] PATH | URL
--revision HEAD - specifies that the information will be
for the HEAD revision of the resource. PATH - the local file system path to the resource. URL - the repository URL for the resource.
This command can obtain information for a resource from a working copy or from a
Subversion repository. -
svn add PATH...
PATH- the local file system path for the unversioned
resources to be added to version control. More than one can be specified.
-
svn propset svn:ignore PATH PARENTPATH
svn:ignore - the predefined property name for ignoring
resources.
PATH - the relative path from the working copy root for the
resource to be ignored.
PARENTPATH - the path to the parent of the resource to be
ignored.
-
svn delete --recursive PATH | URL
--recursive - specifies that he operation should be
performed recursively.
PATH - the local file system path for the resource to
delete.
URL - the repository URL for the resource to delete.
This command can delete resources from a working copy or from a Subversion
repository.
-
svn copy (SRCPATH DSTPATH) | (SRCURL DSTURL)
SRCPATH - the working copy path of the resource to be
copied.
DSTPATH - the working copy path to be copied to.
SRCURL - the repository path of the resource to be
copied.
DSTURL - the repository path to be copied to.
-
svn move (SRCPATH DSTPATH) | (SRCURL DSTURL)
SRCPATH - the working copy path of the resource to be
moved.
DSTPATH - the working copy path to be moved to.
SRCURL - the repository path of the resource to be
moved.
DSTURL - the repository path to be moved to.
-
svn resolved --recursive PATH
--recursive - specifies that he operation should be
performed recursively. PATH - the path to the resource in the local working
copy.
-
svn revert [--recursive] PATH
--recursive - specifies that he operation should be
performed recursively. PATH - the local working copy path to revert.
-
svn cleanup PATH
PATH - the working copy path to cleanup.
Show / Refresh Properties- svn proplist PATH & svn propget PROPNAME
PATH
PATH - the local path for the resource
PROPNAME - the property name.
First you can discover the property names with svn proplist, then
you can obtain their values with svn propget. - svn copy -m "log message" URL1 URL2 or svn copy
-m "log message" URL1@rev1 URL2 or svn copy -m "log message"
PATH URL
-m "log message" - the commit comment URL1 - the source repository URL. rev1 - the revision of the source. URL2 - the destination repository URL. PATH - the source working copy path. URL - the destination repository URL.
- Merge - svn merge [--dry-run] rev1:rev2 URL PATH or
svn merge [--dry-run] URL1@rev1 URL2@rev2 PATH
--dry-run - specifies that the operation will be
simulated without making any modifications. URL - the repository URL for the resource to
merge. URL1 - the repository URL for the start branch to
merge. rev1 - the start revision for the resource to
merge. URL2 - the repository URL for the end branch to
merge. rev2 - the end revision for the resource to merge. PATH - the destination path in the working copy for the
result of the merge
-
svn status --show-updates --verbose PATH
--show-updates - get the resource status by contacting
the repository. --verbose - specifies that the status of all files should
be reported. PATH - The location on the file system to get status
for.
The command will obtain the repository status for all the resources in the
path. -
svn lock [--force] [-m "log message"] PATH
--force - forces(steals) the lock -m "log message" - the lock comment. PATH - the path to the file from the working
copy..
-
svn unlock [--force] PATH
--force - forces(breaks) the lock PATH - the path to the file from the working
copy..
- Mark as merged - rename FILE FILE.TMP, svn update
FILE and rename FILE.TMP FILE
FILE - the file to be marked as merged.
FILE.TMP - a temporary filename.
- svn revert PATH, svn update
PATH
PATH - the path of the resource to be
overridden.
- If the resource is in conflict it performs first mark
resolved and if the resource has incoming changes mark as
merged and then svn commit -m "log message" [--no-unlock]
PATH
-m "log message" specifies the commit comment. --no unlock specifies that the resource should keep locks
after commit if this is the case. PATH is the location on the file system of the resource
to be committed.
-
svn propset [--recursive] PROPNAME PROPVALUE PATH
--recursive - specifies that the property should be set
recursively.
PROPNAME - the property name.
PROPVALUE - the property value.
PATH - the resource path.
-
svn propdel [--recursive] PROPNAME PATH
--recursive - specifies that the property should be deleted
recursively.
PROPNAME - the property name.
PATH - the resource path.
Revert changes from this revision-
svn merge rev:rev-1 URL
rev - revision whose changes must be reverted. URL - The SVN URL corresponding to the resource.
Revert changes from these revisions-
svn merge rev1:rev2 URL
rev1 - first revision number. rev2 - second revision number. URL - The SVN URL corresponding to the resource.
© 2010 syncRO soft ltd. |