Read Microsoft PowerPoint - Moving From PVCS.pptx text version

Polarion Software®

Moving from PVCS to Subversion g Dipl.-Inf. Rainer Kreutzer

Polarion Software GmbH

SubConf 2009

Introduction

·

PVCS features

· · · · · Overview PC-Client pcli.exe Server functions as a file server Problems with refactoring How to move to Subversion Get the Polarion Import p Importer config file Run the importer The svndump file p svnadmin load What is preserved The long way from locking to edit / merge Tags and branches are cheap Merging is easy The development culture What to consider when moving

·

PVCS Importer for Subversion

· · · · · ·

·

Process Mapping

· · · · ·

Subversion Review

Moving from PVCS

Subversion Review

Architecture

Client Interface

Repository Interface

FSFS Apache mod_dav

GUI client li t apps

Repository R it access DAV Client Library SVN Internet

(Any TCP/IP Network)

mod_dav_svn

svnserve

Commandline client apps

Local

Subversion Repository

Working Copy Management Library

Berkley DB

Polarion Software®

www.polarion.com

5

Moving from PVCS

Subversion Review

Working Copy

0

1

2

3

4

0

1 1 1 1 1

2 1 1 1 1 2 2

3 1 1 1 1 3 2 3 3

4 4 1 1 4 3 2 3 3

Polarion Software®

www.polarion.com

6

Moving from PVCS

Subversion Review

Repository layout

modules on root ·each module has to be checked out separately h d l h t b h k d t t l ·commits can not span multiple modules ·tags can not span multiple modules in single commit ( o a ou d (workaround by 3rd party tools) pa y oo s) ·,,official" svn layout

Polarion Software®

www.polarion.com

7

PVCS Features

Moving from PVCS

PVCS Features

Overview

· Polytron Version Control System · PVCS follows the "locking" approach to concurrency control · Bought by Serena in 2004 · Serena is continuing to support PVCS

Polarion Software®

www.polarion.com

9

Moving from PVCS

PVCS Features

PC-Client pcli.exe

pcli Get

7 3 5 file fil version numbers i b

Polarion Software®

www.polarion.com

10

Moving from PVCS

PVCS Features

Server functions as a file server

Server functions as a file server with the following advantages d t

No transactions are supported check-in may not be complete file based and not change based get doesn't delete any files which are in the targer directory and not part of the repository No tool support for new files, which are not currently under version control baselines are labels in each file: may run into performance y p issues because all files have to be transmitted to the client and again to the server

Polarion Software®

www.polarion.com

11

Moving from PVCS

PVCS Features

Problems with refactoring

Deleting files is not possible because the history is also deleted Renaming is deleting and creating Therefore refactoring is not practicable g p Should use PVCS Admin Knowlegde about archive files is nessacary

Polarion Software®

www.polarion.com

12

Moving from PVCS

PVCS Features

How to move to Subversion

Get the Polarion Importer

http://www.polarion.com/products/svn/svn_importer_features.php#PCVS

Adapt the configuration to your environment Run the importer Get a svn dump file Filter the svn dump file to adapt it to your requirements Import the result into any subversion repository

Polarion Software®

www.polarion.com

13

PVCS Importer for Subversion

Moving from PVCS

PVCS Importer

Get the Polarion Importer

config file

Readme file

importer jar file

Polarion Software® www.polarion.com 15

Moving from PVCS

version management system

PVCS Importer

Importer config file (1)

customized naming of BTT

subversion programs

Polarion Software® www.polarion.com 16

Moving from PVCS

project p path

PVCS Importer

Importer config file (2)

authentith ti cation

validate files with ith MD5

Polarion Software®

www.polarion.com

17

Moving from PVCS

PVCS Importer

Run the Importer

jar file from j fil f installation

Complete import

Full path to the config file

Polarion Software®

www.polarion.com

18

Moving from PVCS

svndumpfile format specification

PVCS Importer

the svndump file

Properties as key/value pairs

Where to import the file

Polarion Software®

www.polarion.com

19

Moving from PVCS

PVCS Importer

svnadmin load

Polarion Software®

www.polarion.com

20

Moving from PVCS

PVCS Importer

svnadmin load

Polarion Software®

www.polarion.com

21

Moving from PVCS

PVCS Importer

svnadmin load

Polarion Software®

www.polarion.com

22

Moving from PVCS

PVCS Importer

What is preserved

The Polarion SVN-Importer preserves p p Commits Authors Commit dates Messages Labels tags L b l -> t Branches The Polarion SVN-Importer resolves Non critical errors

Polarion Software®

www.polarion.com

23

Process Mapping

Moving from PVCS

Edit / Merge approach No checkout before start work Update any changes from the repository Get as many working copies as needed Install a plugin for your development tool If conflicts occur (-> project management) solve them with merge

Polarion Software®

Miscellaneous

Mental change from locking to merging

Locking approach Need to know which N dt k hi h files to be edited All files for editing must not be locked What to do if files are locked Wait l k d ? W it ? What to do if someone has forgotten to check in files ?

www.polarion.com

25

Moving from PVCS

Process Mapping

Tags and branches are cheap

Root

Root R t Project 1

trunk tags release_01

trunk

branches bugfix_release_01

tags Release 1

Polarion Software®

www.polarion.com

26

Moving from PVCS

Process Mapping

Merging is easy

branch

4

4

6

6

7

trunk (wc)

3

5

5

8

8

Polarion Software®

www.polarion.com

27

Moving from PVCS

· From: · To:

Process Mapping

The development culture

My files (locked by me) are owned by me As soon as my task is finished I provide the changes to everyone I need to know which files I need for editing Start working and commit my changes to the Repo Why is that certain file locked and the colleague is not at the office ? The changes I made during the abcent of my colleague is reviewed by him when he is back

www.polarion.com 28

· From: · To:

· From: · To:

Polarion Software®

Moving from PVCS

Process Mapping

What to consider when moving

· Collect the current problems with PVCS from the development team d l tt · Calculate the amount of time you are spendung for administrating PVCS · Collect the features the developers wants to have and cannot be provided by PVCS · Train the users (1 day) and administrators (2-3 days) · Migrate some closed and smaller projects with Polarions SVN-Importer · Select the plugins for your development tools

Polarion Software®

www.polarion.com

29

Moving from PVCS

· PVCS Importer

Miscellaneous

Links

http://www.polarion.com/products/svn/svn_importer_features.php#PCVS http://www polarion com/products/svn/svn importer features php#PCVS

Polarion Software®

www.polarion.com

30

Information

Microsoft PowerPoint - Moving From PVCS.pptx

30 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

23991


Notice: fwrite(): send of 208 bytes failed with errno=104 Connection reset by peer in /home/readbag.com/web/sphinxapi.php on line 531