Command list

If in following overview as possible parameter -r revision is given, this revision may be set as url?rev=the-revision.

Table 4.1. Subversion commands

CommandMeaningAccepted options
commit (or ci)commit changes of item to repository 
logPrint log of item-r startrevision:endrevision -l limit_display
catDisplay content of item-r revision
copy (or cp)Copy item inside working copy or repository. If target isn't given, kdesvn will prompt. 
move (or mv, rename)Move/Rename item inside working copy or repository. If target isn't given, kdesvn will prompt. 
getGet content of item and save it-r revision -o <outputfile> (output is required!)
blame (or annotate)annotate file-r startrevision:endrevision
updateUpdate item in working copy-r revision
diffDiff two revisions of item or diff two items at specific revision-r startrev:endrev
infoDetailed information about the item-r revision
checkout (or co)Checkout repository-path into a new working copy path. Target path and source revision will be asked for. 
checkoutto (or coto)Checkout repository-path into a new working copy path. The difference of the source path and source revision will be asked for. 
exportExport repository- or working copy-path into directory. Target path and source revision will be asked for. 
exporttoExport repository- or working copy-path into directory. Source path and source revision will be asked for. 
delete (del, remove, rm)delete url(s) from repository or working copy. 
addadd URL to working copy. URL must belong to a working copy (its not an import!) 
revert (or undo)undone current changes to working copy. May only used on working copy urls! 
checknew (or addnew)check in given URL for new, unversioned items and add them to working copy if wanted. 
treedisplays revision tree of item (only first argument), if URL with ?rev=xxx given, this revision is the peg-revision.-r startrev:endrev
locklock url(s), if -f is given then existing locks are broken.-f
unlockunlock url(s), if -f is given then not owned locks are broken or non existing locks are ignored.-f
helpdisplays this page 


Table 4.2. Parameter for subversion commands

ParameterPossible valuesallowed for
-rrevision or startrev:endrevall except commit
-R(none)all except commit
-ofilenameget
-lnumberlog
-f(none)(un-)lock


The log command

Log command displays a dialog containing the log of the given URL. With subversion 1.2 or above it accepts a limit, i.e. how many entries it has to display.

Inside that dialog you may select log entries and get the differences between them.

Example 4.1. Display the last 20 commit logs

kdesvn exec log -l 20 -r HEAD:1 myfile.c

Beware of order of revision: You want go from HEAD to START for the LAST one. So you must give revision HEAD as starting point, otherwise you would get the first 20 entries.


The diff command

You get differences between revisions of an item or between two items inside same working copy or repository. When diff'ing revisions of an item, revisions may be given as -r STARTREV:ENDREV. When diffing an item inside a working copy without any revisions it prints the diff against repository.

Example 4.2. Print difference against repository, i.e. local changes

kdesvn exec diff myfile.c


Example 4.3. Print difference between revisions

kdesvn exec diff -r 21:20 myfile.c


When diffing two items revisions may be appended to URL of items. e.g.:

http://server/path/item?rev=HEAD

Example 4.4. Diffing two tagged versions

kdesvn exec diff http://www.alwins-world.de/repos/kdesvn/tags/rel_0_6_2 http://www.alwins-world.de/repos/kdesvn/tags/rel_0_6_3