SVN Commands

 Run each command by adding svn as prefix to execute for the svn server:
 The general format is  :

 svn command_name


shivamm@http-189:~/trunk/development/code/Shivam$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.8.13.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.



Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
  1.    add
  2.    blame (praise, annotate, ann)
  3.    cat
  4.    changelist (cl)
  5.    checkout (co)
  6.    cleanup
  7.    commit (ci)
  8.    copy (cp)
  9.    delete (del, remove, rm)
  10.    diff (di)
  11.    export
  12.    help (?, h)
  13.    import
  14.    info
  15.    list (ls)
  16.    lock
  17.    log
  18.    merge
  19.    mergeinfo
  20.    mkdir
  21.    move (mv, rename, ren)
  22.    patch
  23.    propdel (pdel, pd)
  24.    propedit (pedit, pe)
  25.    propget (pget, pg)
  26.    proplist (plist, pl)
  27.    propset (pset, ps)
  28.    relocate
  29.    resolve
  30.    resolved
  31.    revert
  32.    status (stat, st)
  33.    switch (sw)
  34.    unlock
  35.    update (up)
  36.    upgrade

1.list (ls)   ---- for listing the files

svn ls  (for current directory)
svn ls diectory_path  (for the required directory)

2.    mkdir  ---- creating directory

svn mkdir  (for currentdirectory on the server)
svn mkdir path

3.    checkout (co)

svn co url
svn co url/path

4.add

svn add filename

5. svn ci 

svn ci -m "commit file"  (for commiting all the files at once on the server)

6. svn status

The first column indicates that an item was added, deleted, or otherwise changed.


    No modifications.
A
    Item is scheduled for Addition.
D
    Item is scheduled for Deletion.
M
    Item has been modified.
R
    Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
C
    The contents (as opposed to the properties) of the item conflict with updates received from the repository.
X
    Item is related to an externals definition.
I
    Item is being ignored (e.g. with the svn:ignore property).
’?’
    Item is not under version control.
’!’
    Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
’~’
    Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.

7. svn up

8.svn log

9. update

You can update to an older revision:

svn update -r 666 file_name

9.cat

Or you can just view the file directly:

svn cat -r 666 file_name | less

10. diff

svn diff -r63 Calculator.py

0 comments:

Copyright © 2013 SoftKul