User Tools

Site Tools


svn:start

This is an old revision of the document!


SubVersion

Using SVN

help

It goes without saying that this book exists to be a source of information and assistance for Subversion users new and old. Conveniently, though, the Subversion command-line is self-documenting, alleviating the need to grab a book off the shelf (wooden, virtual, or otherwise). The svn help command is your gateway to that built-in documentation:

$ svn help

Getting repository

To get local copy of repository :

cd ~/AMS400
svn co http://svn.lumifun.ftj.agh.edu.pl/EUDET_V --username LOGIN

Update

Commit

Working with Cadence

Setting up svn

getting access to svn server

setting environment

In file ~/.bashrc you have to specify editor wich will be used to edit commit description:

 export SVN_EDITOR=gedit 

You have to add scripts directory to You PATH:

 export PATH=~/AMS400/EUDET_V/scripts:$PATH

typical use case

  1. going into repository directory
    cd ~AMS400/EUDET_V
  2. getting latest version
    svn update
  3. work very hard
  4. work ending
    • getting latest version (someone may changed something while you were working on Yours local copy of data)
      svn update
    • if there are were any changes You should check if Your work is compatible with changes commited by someone
    • if You created any new files (cells, schematics, layouts, …) You should add them to repository
      svn_helper.py add [dir/file]
    • at the end You have to send changes to repository
      svn commit

      You should put (not to long, but having sense) comment

svn_helper.py

  • this script was written to help with adding new files to repository
  • it is placed at : scripts/svn_helper.py
  • there are two configuration files :
    • scripts/files.cnf - tells which files should be added
    • scripts/dirs.cnf - tells which directories should be added
  • typical output :
kulis@lumifun:~/EUDET_V$ svn_helper.py add
Creating /home/kulis/EUDET_V/scripts/logs/svn_helper_2010_05_10_14_21_50.sl
scripts/known_type.py                                                           [file] [PY ] [+]
scripts/unknow_type.123                                                         [file] [!!!] [-]
scripts/logs/svn_helper_2010_05_10_14_21_50.sl                                  [file] [SL ] [-]
Unmached files:
  scripts/unknow_type.123
  • meaning of columns in [] :
    1. file system node type (file or directory)
    2. identified object type (schematic, layout, script) (if colour is green it means that object was identified, if colour is red and string is “!!!” it means that type is unknown and proper pattern should be added to files/dirs.cnf)
    3. will object be added to repository (+ yes, - no)
  • If there are unknown types of files script will not allow to proceed

FAQ

rename cell

  • if You rename cell A to cell B under CADANCE, you have to :
    1. svn update
    2. svn del A
    3. svn_helper.py del_svn_info B
    4. svn_helper.py add B
/services/www/http/wiki/data/attic/svn/start.1342770847.txt.gz · Last modified: 2019/03/08 14:06 (external edit)