1 / 14

dpnc.unige.ch/SVNDAMPE/DAMPE/

http:// dpnc.unige.ch/SVNDAMPE/DAMPE/. Current revision. will be shown in Chi’s ppt. Top structure of SVN. Trunk Everything is here and sync with your PC Tags Every release package is here, it is milestone container. Branches

oakes
Télécharger la présentation

dpnc.unige.ch/SVNDAMPE/DAMPE/

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. http://dpnc.unige.ch/SVNDAMPE/DAMPE/ Current revision will be shown in Chi’s ppt

  2. Top structure of SVN • Trunk • Everything is here and sync with your PC • Tags • Every release package is here, it is milestone container. • Branches • You can put your new ideas here, and can be merged to the trunk or release a tag when it is finished. To SVN, the ‘Trunk’, ‘Tags’ and ‘Branches’ are same. Just different names of directories.

  3. Top view of SVN Trunk Make a branch Debug User developing Tags

  4. Initial • Create your SVN account • Shell: htpasswd -c filename myusername • Mailto: Valentina Gallo Valentina.Gallo@cern.ch • Checkout the code from the server to your PC • Shell: svncheckout http://dpnc.unige.ch/SVNDAMPE/DAMPE/OpenDmpSoftware/trunk You can try svn with http://dpnc.unige.ch/SVNDAMPE/DAMPE/software/testdir/

  5. One work cycle • Update the newest codes: • cd <youworkdir> • svn update • Files operation: • svn [add/delete/copy/move] <yourfilename> • Do not use shell command [touch/rm/cp/mv] • Debug your code local • If you met a global error, please give a group mail. • Sync your work to the server: • svn commit • Revert you change: • svn revert <filename> • svnupate –r <oldversionNo> <filename>

  6. Top view of SVN Trunk Make a branch Debug User developing Tags

  7. Picture of Branches Merge the newest code from trunk Make a branch copy Merge to the trunk Improvement Give up and delete Custom Release a tag Rules of branches: totally free for every user must be carefully to merge back

  8. Give a branch • Copy the trunk to your branch folder: • svn copy trunk branches/<yourbranchname> • Update your branch(in you branch folder): • svnmerge http://dpnc.unige.ch/SVNDAMPE/DAMPE/OpenDmpSoftware/trunk • Merge back your code to the trunk • cd <yourtrunkdir> • svn merge http://dpnc.unige.ch/SVNDAMPE/DAMPE/OpenDmpSoftware/branches/<yourbranchdir> Do not forget the ‘commit’

  9. Top view of SVN Trunk Make a branch Debug User developing Tags

  10. Picture of Tags branch trunk copy Tags Rules of tags: Before release, must be fully tested. When released, No Improvement branch is allowed. Single direction. Only be read by users.

  11. Tests • Software test • With a given macro file testing the software bugs • E.g. in Simulation, 1000 random Muon events. • Can be done by Chi and me • Physics test • test the physics result • E.g. reconstruction of the Muons. • Need data analysis person. In our case, we have no physics test till now.

  12. Name control • Tags: • V0.1 • The first number is determined in the software meeting • The second will be used when needed. • Branches: • I_0.1_setnamehere • The first word can be ‘I’, ‘C’ or ‘D’ , means Improvement, Custom or Debug • ‘0.1’ stands for the revision of trunk • ‘setnamehere’ is free for you

  13. Some comments • A good description of your upload scripts is the key to memory. • The branch is cheap, so use the branch freely. • We may need a more frequent meeting from now on. • Please give a area for name cards in the wiki page.

  14. V1.0 • Simulation: Add every detectors with even simple codes. • Reconstruction: Give the Physics test • Generator: Give a raw model of cosmic rays. Then everyone can drive on.

More Related