• 在项目中应用SVN


    • 在服务器上创建版本库

    1.安装SVN服务器版,安装完后在cmd窗口中键入:svnadmin create F:\svn\aa

    2.编辑aa/conf下的authz、passwd文件

    • authz中编辑

    liferayGroup = wjy,axy               //被授权的用户名

    @liferayGroup = rw

    • passwd中编辑

    [users]
    # harry = harryssecret
    # sally = sallyssecret
    axy = 123                                                //给用户分配密码
    wjy = 123

    3.启动SVN:svnserve -d -r F:\svn 

    关于内置版本号.
    HEAD - 最新版本号.
    BASE - 当前工作版本的未修改版本.
    COMMITTED - BASE - 1
    PREV - COMMITTED - 1
    • 在本地磁盘上应用SVN

    Download SubVersion 1.5.x client or 1.6.x client,double click and install. 安装完之后只能在本地磁盘对文件夹进行更新和提交。
    • 在VStudio中应用SVN

    下载AnkhSVN插件,安装完之后就能在VStudio中Update和Commit代码了,更新和提交时每个项目和整个解决方案都要Update or Commit。

    • 在MyEclipse中应用SVN

    Get the right version!

    Subclipse versions are tied to specific versions of the Subversion client API.  So you must have a matching version of the Subversion client API (JavaHL) for your version of Subclipse.  Any 1.x version of a Subversion client can talk to any 1.x version of a Subversion server, so generally the version does not matter too much.  However, if you use multiple client tools on the same Subversion working copy, then it is important that the version of those clients is all the same.  In addition, if you are on Linux, your distribution might only support a specific version of Subversion and JavaHL.  So you might want to stick with a specific version of Subclipse for that client.

    More information on how to get JavaHL, and the right version for each version of Subclipse can be found in the wiki

    Current Release

    Eclipse 3.2/Callisto, 3.3/Europa, 3.4/Ganymede, 3.5/Galileo +

    Subclipse 1.6.5 and 1.4.8 are now available for Eclipse 3.2+!

    See the changelog for details. Existing Subclipse users should read the upgrade instructions for important information on changes you to need to make to your Eclipse preferences to see the new version in the update manager.

    Subclipse 1.4.x includes and requires Subversion 1.5.x client features and working copy format.

    Subclipse 1.6.x includes and requires Subversion 1.6.x client features and working copy format.

    Links for 1.6.x Release:
    Changelog: http://subclipse.tigris.org/subclipse_1.6.x/changes.html
    Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
    Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

    Links for 1.4.x Release:
    Changelog: http://subclipse.tigris.org/subclipse_1.4.x/changes.html
    Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
    Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

    Eclipse 3.0/3.1

    Subclipse 1.0.6 is now available for Eclipse 3.0/3.1!

    See the changelog for details. Existing Subclipse users should read the 1.0.0 release announcement for details on how to upgrade to the 1.0.x release.

    Links for 1.0.x Release:
    Changelog: http://subclipse.tigris.org/subclipse/changes.html
    Eclipse update site URL: http://subclipse.tigris.org/update_1.0.x
    Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

    Eclipse 2.1.3

    Subclipse 0.9.3.3 is linked against Subversion 1.1.4. Binaries for Windows are included.

    Development for this version of Eclipse is no longer active. There are no new releases planned.

    Download the Eclipse 2.x version

    Installation Instructions

    Here you will find a screenshot tour of the Subclipse installation process in Eclipse 3.x. These particular screens were captured in Eclipse 3.0.2 running on Windows XP.

    Install Subclipse in Eclipse 3.x

    Step 1:

    Begin the installation from the Eclipse Help menu item.

    Install screen

    Step 2:

    This screenshot show the screen as it initially comes up. In this case you will need to change the radio button to indicate that this is a new install.

    Install screen

    Step 3:

    This screen will vary depending on the features you have installed already. You want to click on the New Remote Site button. If you are behind a proxy and the Eclipse install mechanism does not work, then you can download a zipped version of the update site and then click the New Local Site button instead.

    Install screen

    Step 4:

    This screen is showing the New Remote Site dialog, filled in with the correct information to install Subclipse


    Name: Subclipse 1.6.x (Eclipse 3.2+)
    URL: http://subclipse.tigris.org/update_1.6.x

    Name: Subclipse 1.4.x (Eclipse 3.2+)
    URL: http://subclipse.tigris.org/update_1.4.x

    Name: Subclipse 1.2.x (Eclipse 3.2+)
    URL: http://subclipse.tigris.org/update_1.2.x

    Name: Subclipse 1.0.x (Eclipse 3.0/3.1)
    URL: http://subclipse.tigris.org/update_1.0.x
    Install screen

    Step 5:

    When you first come back to this screen, the site you added will NOT be selected. Be sure to select it before clicking Next.

    Install screen

    Step 6:

    This next screen shows all of the features that are available to install.

    Install screen

    Step 7:

    Click the button to accept the license agreement.

    Install screen

    Step 8:

    Confirm the install location

    Install screen

    Step 9:

    There is an Eclipse preference to turn off this next dialog. I have never seen a signed feature. Not even Eclipse.org nor IBM sign their features.

    Install screen

    Step 10:

    Just a screenshot of the in-process installation.

    Install screen

    Step 11:

    Eclipse needs to be restarted after installing Subclipse.

    Install screen

    Step 12:

    Finally, after restarting Eclipse, the first thing you will typically want to do is open the Subclipse Repository perspective where you can define your repositories. Be sure to also check the online help as well as the Subclipse preferences located under Team -> SVN.

    Install screen

    Updating Subclipse in Eclipse 3.x

    Eclipse 3.x has a feature in preference to automatically check for updates. Provided you are not behind a proxy that does not allow this feature, it should work for Subclipse. Otherwise just follow the instructions for installing Subclipse, except take the option to check for updates in Step 2.

    If you are behind a proxy that does not work with Eclipse, then to install updates you just always follow the same instructions you used to install a new version. If you always unzip the site to the same local folder, you will not have to define the local site each time.

    补充:在MyEclipse中更新or提交代码:项目名->右键->Team->Update or Commit

  • 相关阅读:
    UVA 12657 Boxes in a Line 双向链表模拟
    C语言单片和C#语言服务器端DES及3DES加密的实现
    关于TcpClient,Socket连接超时的几种处理方法
    拿来参考的学习计划
    faire la course
    今日法语2
    炸鱼
    今日法语
    今日疑问
    下周想做的菜
  • 原文地址:https://www.cnblogs.com/sophie_wang/p/1616233.html
Copyright © 2020-2023  润新知