Difference: LhSoftSVN (20 vs. 21)

Revision 212020-07-01 - ZhuChengguang

Line: 1 to 1
 
META TOPICPARENT name="LhaasoSoftware"
Line: 6 to 6
  How to maintain your code in LHAASO SVN (LhSVNSimpleManual is a simple manual of using SVN)
Added:
>
>

SVN账号

无论是使用个人svn空间,还是查看LhSoft软件的svn空间,都需要一个账号,如果您还没有账号,请联系尹老师yina@sdu.edu.cn,并提供您的svn账号名称(建议和lxslc上的账号相同)和你希望的密码。开设账号以后密码无法自己更改,因此请不要使用简单密码。

SVN space

1. The space for the LHAASO software: LhSoft SVN Space
2. The SVN space for personal software developing: People SVN Space. twiki: LhPeople
  • Code developer are strongly advised to use the personal space, before publish your code official
 

查看SVN中的LHAASO软件结构

Line: 49 to 58
 

给成熟的package一个版本(tag)

  • When RawEvent in truck is mature, refer to the following example to make a tag
Changed:
<
<
>
>
 
      • 上述命令中,如果v1.0已存在,copy会将RawEvent目录自身和内容一起拷贝到v1.0“下面”去
      • 上述命令中,如果v1.0不存在,copy会将RawEvent目录拷贝成v1.0目录
Changed:
<
<
    • the version tag is v1.0, here
    • 注意上面的命令将把trunk/RawEvent中的内容,全盘拷贝到v1.0中去,v1.0中不包含RawEvent目录。
>
>
    • the version tag is v1.0, here
    • 注意上面的命令将把trunk/RawEvent中的内容,全盘拷贝到v1.0中去,v1.0中不包含RawEvent目录。
 

发布特定版本的的pacakge到官方空间

Changed:
<
<
  • 在某一个时刻,tag中某一个版本的RawEvent需要publish到官方SVN中去,
>
>
  • 在某一个时刻,tag中某一个版本的RawEvent需要publish到官方SVN中去,
 
  • 如果是第一次发布,使用简单的命令:
Changed:
<
<
>
>
 
    • 在一个临时文件夹中,创建source和target两个目录
Changed:
<
<
      • 在目录source中,svn co http://svn.lhaaso.ihep.ac.cn/People/zhang/tags/RawEvent/v2.1 并记住checkout的版本号例如113
      • 在目录target中,svn co http://svn.lhaaso.ihep.ac.cn/LodeStar/offline/trunk/DataModel/RawEvent/; 记住"最后修改版本号“,例如108
>
>
 
    • 将source中的RawEvent merge到target中的RawEvent中去:
Changed:
<
<
      • 在target/RawEvent目录中: svn merge -r 108:113 ../../source/RawEvent
      • 在target/RawEvent目录中: 上传merge结果: svn ci -m" new version"
>
>
      • 在target/RawEvent目录中: svn merge -r 108:113 ../../source/RawEvent
      • 在target/RawEvent目录中: 上传merge结果: svn ci -m" new version"
 
    • 注意,该方法只能在Source版本比Target版本新的情况下才可以使用。如果想返回到比Target更老的版本上去,请用最原始的办法,将Source中的文件一个一个copy到Target中去,覆盖Target文件,并且用svn delete删除Target中有而Source中没有的文件。然后再将Target上传

The command used by manager of SVN

  1. Create an account on the SVN reponsitory: people
Line: 77 to 86
 
Added:
>
>
 
    • htpasswd passwdpeople zhangs //add account xxxx in SVN area people, this command used to update the password too.
    • svn mkdir -m"test" http://svn.lhaaso.ihep.ac.cn/People/zhangs. //makedir, remember use the administration's account and password.
    • vi authpeople.conf //add the following two line at the bottom
 
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