Using SVN to maintain your code

Step by step, shows how to maintain your code in LHAASO SVN

LHAASO SVN view via Web (the last revision)

http://svn.lhaaso.ihep.ac.cn/LodeStar/

The requirement on the package before put into SVN

  • The name of package should be easy recognized
    • package name should be full words, such as Km2aSimulation, or the easy recognized abbreviation, such as Km2aSim
    • the service package should be xxxxxxSvc
    • the tool package should be xxxxxxTool
    • the header files should be put in a separate directory, suggested to be same as package name, not in directory "src"
  • All the not necessary files should be removed
    • the files in directory "cmt", produced by "cmt config"
    • the files produced any directories, produced by "cmt make"

The command used by Code developer

  1. Make a tag and checkout a tag

The command used by user

  1. Check out packages from LodeStar SVN, same address to view on web
  2. Check out packages from user SVN, same address to view on web

The command used by manager of SVN

  1. Create an account on the SVN reponsitory: people
    • logon to lxslc6.ihep.ac.cn
    • logon to root@202.122.38.82
    • cd /var/www/svn
    • htpasswd passwdpeople zhucg //add account zhucg into password file passwdpeople.
    • vi authpeople.conf //add the read/write for the account.
  2. Config SVN to prevent check in .o, .make, .so, .a, .in, etc. files into SVN. Now only skip .o, .so, .a files.

-- 祝 成光 - 2019-12-18

Comments

Edit | Attach | Watch | Print version | History: r21 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2019-12-24 - ZhuChengguang
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback