Version Control with Subversion

Similar documents
SSL VPN User Manual (SSL VPN 連線使用手冊 )

港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統.

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式

Figure 1 Microsoft Visio

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB

RENESAS BLE 實作課程 Jack Chen Victron Technology CO., LTD 2015 Renesas Electronics Corporation. All rights reserved.

Oxford isolution. 下載及安裝指南 Download and Installation Guide

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval

VB 拼圖應用 圖形式按鈕屬性 資科系 林偉川

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03

The notice regarding Participation Ways of our global distributor video conference on Feb. 5.

CLAD 考前準備 與 LabVIEW 小技巧

Software Architecture Case Study: Applying Layer in SyncFree

What is a Better Program?

4Affirma Analog Artist Design Flow

JAVA Programming Language Homework V: Overall Review

第九章結構化查詢語言 SQL - 資料定義語言 (DDL) 資料庫系統設計理論李紹綸著

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8

Frame Relay 訊框中繼 FRSW S0/0 S0/1

Operating Systems 作業系統

Multimedia Service Support and Session Management 鍾國麟

UNIX Basics + shell commands. Michael Tsai 2017/03/06

Allegro SPB V16 Advance

InTANK ir2771-s3 ir2772-s3. User Manual

Quick Installation Guide for Connectivity Adapter Cable CA-42

InTANK ir2622 User Manual

Twin API Guide. How to use Twin

InTANK ir2623-s3 User Manual

SOHOTANK PD3500+ User Manual

WriteAhead 遨遊雲端暨 行動學習應 用 研討會 雲端時代的資訊教育與語 言學習 介紹互動式寫作環境 張俊盛 清華 大學資訊 工程系及研究所 2015 年 4 月 21 日 ( 二 ) 上午 10:00 ~ 12:30 台北市 立 大同 高中 行政 大學 5 樓階梯教室

購票流程說明 How To purchase The Ticket?

Java 程式設計基礎班 (7) 莊坤達台大電信所網路資料庫研究室. Java I/O. Class 7 1. Class 7 2

用於網頁版權保護的資訊隱藏方法. A Steganographic Method for Copyright Protection of Web Pages

Preamble Ethernet packet Data FCS

購票流程說明 How To purchase The Ticket?

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned)

Simulation of SDN/OpenFlow Operations. EstiNet Technologies, Inc.

全面強化電路設計與模擬驗證. Addi Lin / Graser 2 / Sep / 2016

Increase Productivity and Quality by New Layout Flow

黃河凱. Kaiser Huang 巨匠電腦北區 / 新竹認證中心認證講師國立新竹教育大學數位學習科技研究所在職生微軟原廠認證講師 MCT

Lotusphere Comes to You 輕鬆打造 Web 2.0 入口網站 IBM Corporation

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP)

AVG Anti-Virus User Manual. Document revision ( )

Print Specs: HP Deskjet C5100 All-in-One series Setup Guide

Quick Installation Guide

BTC, EMPREX Wireless Keybaord +Mouse + USB dongle. 6309URF III Quick Installation Guide

微算機原理與實驗 Principle of Microcomputer(UEE 2301/1071 )

Citrix CloudGateway. aggregate control. all apps and data to any device, anywhere

三 依赖注入 (dependency injection) 的学习

Registering ( 註冊新帳號 )

USER GUIDE. EZ Switch TM 10/100/ Port Gigabit Ethernet Switch SMCGS805

DVS-8504E-H 四路 H.264 數位影像編碼器

SOHORAID ST8-TB3 User Manual

MH-3621-U3 Clone Dual SATA HDD Docking System

Java 程式設計基礎班 (7) 劉根豪台大電機所網路資料庫研究室. Java I/O. Class 7 1. Class 7

PUB. DIM Wi-Fi Basic Setup Guide. Wi-Fi 基本设置指南. Wi-Fi 基本設定指南 在使用本产品之前, 请务必先仔细阅读本使用说明书 请务必妥善保管好本书, 以便日后能随时查阅 ( 保留备用 ) 请在充分理解内容的基础上, 正确使用

微軟新一代私有雲服務. 利用 Windows Azure Pack 協助企業建構現代化的 IT 服務架構, 提升競爭力降低維運成本. Jason Chou Architect. Nov 7, 2013

Gigabyte and Giga-byte are trademarks of Giga-byte Technology Co., Ltd. Microsoft and Windows XP are trademarks of Microsoft Corporation.

Chinese (Traditional) Style Guide

DVS-8501E/DVS-8501E-H 單路 H.264 數位影像編碼器

PCU50 的整盘备份. 本文只针对操作系统为 Windows XP 版本的 PCU50 PCU50 启动硬件自检完后, 出现下面文字时, 按向下光标键 光标条停在 SINUMERIK 下方的空白处, 如下图, 按回车键 PCU50 会进入到服务画面, 如下图

// 範例 4-1: 連結資料庫 (connectdb.php) <?php mysql_connect("localhost", "student", "Asia2013"); mysql_select_db("student");?>

Port GCC to a new architecture Case study: nds32

Version Control. Kyungbaek Kim. Chonnam National University School of Electronics and Computer Engineering. Original slides from James Brucker

Subversion Repository Layout

EdConnect and EdDATA

Ubiquitous Computing Using SIP B 朱文藝 B 周俊男 B 王雋伯

Additional Information

EMP2 SERIES. mpcie to Serial COM User Manual. Rev 1.3

晶焱科技股份有限公司 Amazing Microelectronic Corp.

Briefing Session on 2013 HKDSE ICT Exam. 22/23 Nov 2013

Password Protection 此篇文章說明如何在程式中加入密碼保護的機制, 當程式開啟, 使用者必須先輸入使用者帳號及密碼, 若是合法使用者才能進入應用程式

外薦交換生線上申請系統操作說明 Instruction on Exchange Student Online Application System. [ 中文版 ] [English Version]

Dr. Whai-En Chen. Institute of Computer Science and Information Engineering National Ilan University TEL: #340

Building Embedded Linux Systems using PCM7230

利用數據與軟體瞭解 讀者行為使用分析與服務平台選項

English G H. Package Contents. Hardware Requirements. Technical Specifications. Device Overview. MSI DS502 GAMING HEADSET User Guide

微軟商務用 Skype 雲端視訊會議及與所需頻寬介紹

Report on Hong Kong SME Cloud Adoption, Security & Privacy Readiness Survey

微處理機系統 吳俊興高雄大學資訊工程學系. February 21, What are microprocessors (µp)? What are the topics of this course? Why to take this course?

Protech RMA Request Form

步驟 1: 首頁以 facebook 或 google 帳號登入, 並點選節目 Step 1:Log in with your facebook/google account, then click the show banner.

EZCast Docking Station

3.1 Animation. Rotating Square

Use of SCTP for Handoff and Path Selection Strategy in Wireless Network

Invitation to Computer Science 5 th Edition. Chapter 8 Information Security

Syntest Tool 使用說明. Speaker: Yu-Hsien Cheng Adviser: Kuen-Jong Lee. VLSI/CAD Training Course

Mid-term EXAM. 11/14/2009

EZCast Wire User s Manual

私有雲公有雲的聯合出擊 領先的運算, 儲存與網路虛擬化技術 靈活的計費模式與經濟性 支援廣大的商業應用場景 涵蓋各類型雲服務 類標準的企業資料中心架構 全球規模與快速部署. 聯合設計的解決方案可為客戶提供最佳的 VMware 和 AWS

GPIB 儀器控制之概念及軟硬體介紹 研華股份有限公司 工業自動化事業群

虛擬機 - 惡意程式攻防的新戰場. 講師簡介王大寶, 小時候大家叫他王小寶, 長大後就稱王大寶, 目前隸屬一神祕單位. 雖然佯稱興趣在看書與聽音樂, 但是其實晚上都在打 Game. 長期於系統最底層打滾, 熟悉 ASM,C/C++,

VMware vsphere. 零壹科技 Josh.wang VMware Inc. All rights reserved

Digital imaging & free fall of immersed sphere with wall effects

FCC Compliance Statement:

香港中文大學學生會計算機科學系會 圖書清單

EZCast Wire. User s Manual. Rev. 2.00

Transcription:

Version Control with Subversion 指導教授郭忠義 邱茂森 95598051 1

Table of contents (1) Basic concepts of subversion (1)What is Subversion (2)Version Control System (3)Branching and tagging (4) Repository and Working Copy 2

Table of contents (2) Server side task (1) Installing Subversion Server ( 選項 ) (2) svnadmin Subcommands 3

Table of contents (3) Client side task (1) Import a new project (2) checkout (3) The typical work cycle ( 常用 SVN Subcommands) (4) Branching and tagging 4

Basic concepts of subversion 5

What is Subversion? Subversion is a version control system. Subversion manages files and directories over time. allows you to recover older versions of your data, or examine the history of how your data changed. Allow people on different computers to modify and manage the same set of data. 6

Version Control System 圖 4-1 7

Branching and tagging The tags directory contains snapshots of the trunk at particular milestones, usually major releases or perhaps prior to a major departure in development. The trunk directory holds the main copy of this project. The branches directory holds versions of the project that a developer or group of developers may be working on. 8

tagging 圖 4-1 改 9

Branching The branches directory holds versions of the project that a developer or group of developers may be working on. 10

兩種 branch 的建立方式 Basically stable 經過 QA 或是 unit test 的檔案才放在 trunk 所有開發 錯誤修正 QA(quality assurance) 都在 branch 上進行 Basically unstable 所有開發 錯誤修正 QA(quality assurance) 都在 trunk 上進行 準備釋出 (release) 時才建立 branch 來進行 QA 11

The Repository & Working Copy The repository is an ordinary file server that remembers every change ever made to your files and directories. 12

The Problem of File-Sharing 13

Solution 1 The Lock-Modify-Unlock Solution 14

Solution 2 The Copy-Modify-Merge Solution 15

Solution 2 (continued) 16

Server side tasks 17

安裝 Subversion Server Download the Subversion for Windows 1.4 (now available) http://subversion.tigris.org/ Apache HTTP Server 2.0.x for Win32 http://httpd.apache.org/ Note that the Apache modules included in this package was compiled against Apache HTTP Server 2.0, and thus will not work with Apache HTTP Server 2.2. 18

故障排除 開啟瀏覽器看是否能連結到 http://localhost 如果不行 (1) 檢查防火牆設定 (2) 檢查 80 port 是否被其他服務所占用, 例如 :World Wide Web Publishing 19

安裝 Subversion Subversion 1.4.0 released http://subversion.tigris.org/files/documents/15/34093/svn- 1.4.0-setup.exe 點兩下安裝 20

簡易設定 21

手動設定 Apache 2.0 server 複製 Subversion 安裝目錄 \bin 資料夾裏的 mod_authz_svn.so 和 mod_dav_svn.so 兩個檔案到 Apache2 安裝目錄 \Apache2\modules 修改 Apache2 安裝目錄 \Apache2\conf\ 下的 httpd.conf 檔案 : 找到下面兩行並刪除 # 標記, #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so 並新增以下兩行 : LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so Save httpd.conf file, and restard Apache server 22

Installing TortoiseSVN (optional) 圖形使用者介面環境 http://tortoisesvn.tigris.org/ Download and double click to install 23

svnadmin Subcommands (Repository Administration) (1) Create a new, empty repository svnadmin create (2)Dump the contents of filesystem to stdout svnadmin dump (3)Read a dumpfile -formatted stream from stdin. svnadmin load 24

Create a new, empty repository 1. Create a directory for repository (ex. repos) 2. Run svnadmin create --fs-type fsfs /path/repos (ex.d:/svn/repos) 25

Create a repository (using GUI) 2. Or you can use TortoiseSVN to create a repository. 26

Create a new, empty repository(continued) 3. After finished creating, you can see something like this. 27

Configuring Apache 2.0 server 編輯 httpd.conf 檔加入以下敘述 : <Location /repos> DAV svn SVNPath /the local path of /repository </Location> SVNPath 指的是 repository 實際上的目錄, 例 : D:\svn\repos Save httpd.conf file, and restard Apache server 28

Client side tasks 29

Import a new project Suppose you already have a project on your computer. And you want to upload to SVN server. (Ex. upload the TestProject) 30

31

32

The address of repository : http://140.124.181.168/repos Your id : jykuo Your pw : jykuo ( 前提 :Server 端已經建置完成, 並且管理員已經為你設定好帳號密碼 ) 33

34

35

36

checkout Most of the time, you will start using a Subversion repository by doing a checkout of your project. Checking out a repository creates a copy of it on your local machine. 37

38

39

The typical work cycle 1. Update your working copy 2. Make changes 3. Examine your changes 4. Merge others' changes into your working copy 5. Commit your changes 40

1.Update your working copy svn update (updates your working copy, and only prints information about files that it updates.) 41

2.Make changes svn add svn delete svn copy svn move 42

3.Examine your changes svn status svn diff svn revert 43

44

45

4.Merge others' changes into your working copy svn merge svn resolved 46

47

5.Commit your changes svn commit (Send changes from your working copy to the repository.) 48

Branching and tagging 49

50

Reference Subversion book http://svnbook.red-bean.com/nightly/en/svn-book.html Subversion for Windows with Apache server http://svn.spears.at/ Subversion FAQ http://subversion.tigris.org/faq.html TortoiseSVN Documentation http://tortoisesvn.net/docs/release/tortoisesvn_en/index.html SVN vs CVS quick comparison http://www.pushok.com/soft_svn_vscvs.php Apache HTTP Server Version 2.0 Documentation http://httpd.apache.org/docs/2.0/ 51

Reference(continued) OpenSSH manual http://www.openssh.com/manual.html Cygwin User's Guide http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html OpenSSH sshd server on Windows http://pigtail.net/lrp/printsrv/cygwin-sshd.html 52