SVN

Resources:

  1. http://subversion.tigris.org/
  2. http://subversion.apache.org/
  3. http://svnbook.red-bean.com/ (Book)
  4. http://subversion.apache.org/docs/community-guide/
    SVN Commands:

gunnalag@TestSun2:/u/gunnalag/repository/svntest> svn -h
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.11.
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:
   add
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/

gunnalag@TestSun2:/u/gunnalag/repository/svntest> svn co -h

Valid options:
  -r [–revision] ARG      : ARG (some commands also take ARG1:ARG2 range)
                             A revision argument can be one of:
                                NUMBER       revision number
                                ‘{‘ DATE ‘}’ revision at start of the date
                                ‘HEAD’       latest in repository
                                ‘BASE’       base rev of item’s working copy
                                ‘COMMITTED’  last commit at or before BASE
                                ‘PREV’       revision just before COMMITTED
  -q [–quiet]             : print nothing, or only summary information
  -N [–non-recursive]     : obsolete; try –depth=files or –depth=immediates
  –depth ARG              : limit operation by depth ARG (’empty’, ‘files’,
                            ‘immediates’, or ‘infinity’)
  –force                  : force operation to run
  –ignore-externals       : ignore externals definitions

Global options:
  –username ARG           : specify a username ARG
  –password ARG           : specify a password ARG
  –no-auth-cache          : do not cache authentication tokens
  –non-interactive        : do no interactive prompting
  –trust-server-cert      : accept unknown SSL server certificates without
                             prompting (but only with ‘–non-interactive’)
  –config-dir ARG         : read user configuration files from directory ARG
  –config-option ARG      : set user configuration option in the format:
                                 FILE:SECTION:OPTION=[VALUE]
                             For example:
                                 servers:global:http-library=serf

gunnalag@TestSun2:/u/gunnalag/repository/svntest>

 

Setting up Environment:

gunnalag@TestSun2:/u/gunnalag/repository/svntest>setenv SVN_EDITOR vi
gunnalag@TestSun2:/u/gunnalag/repository/svntest> svn ci TestFile.txt
svn: Commit failed (details follow):
svn: system(‘vi svn-commit.tmp’) returned 256
gunnalag@TestSun2:/u/gunnalag/repository/svntest> setenv SVN_EDITOR vim
gunnalag@TestSun2:/u/gunnalag/repository/svntest> svn ci TestFile.txt
Sending        TestFile.txt
Transmitting file data .
Committed revision 12.
gunnalag@TestSun2:/u/gunnalag/repository/svntest>

Leave a Reply

Your email address will not be published. Required fields are marked *