If in following overview as possible parameter -r
is given, this revision may be set as revision
.
url
?rev=the-revision
Table 4.1. Subversion commands
Command | Meaning | Accepted options |
---|---|---|
commit (or ci) | commit changes of item to repository | |
log | Print log of item | -r startrevision:endrevision -l limit_display |
cat | Display 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. | |
get | Get content of item and save it | -r revision -o <outputfile> (output is required!) |
blame (or annotate) | annotate file | -r startrevision:endrevision |
update | Update item in working copy | -r revision |
diff | Diff two revisions of item or diff two items at specific revision | -r startrev:endrev |
info | Detailed 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. | |
export | Export repository- or working copy-path into directory. Target path and source revision will be asked for. | |
exportto | Export 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. | |
add | add 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. | |
tree | displays revision tree of item (only first argument), if URL with “?rev=xxx ” given, this revision is the peg-revision. | -r startrev:endrev |
lock | lock url(s), if -f is given then existing locks are broken. | -f |
unlock | unlock url(s), if -f is given then not owned locks are broken or non
existing locks are ignored. | -f |
help | displays this page |
Table 4.2. Parameter for subversion commands
Parameter | Possible values | allowed for |
---|---|---|
-r | revision or startrev:endrev | all except commit |
-R | (none) | all except commit |
-o | filename | get |
-l | number | log |
-f | (none) | (un-)lock |
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.
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
. When diffing an item inside a working copy without any revisions it prints the diff against repository.
STARTREV
:ENDREV
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