Subversion to Perforce in 30 minutes

35
Subversion to Perforce in 30 minutes Tom Tyler, Perforce Software Consulting Services

description

Contemplating a move from Subversion? Learn what you need to start planning your migration. Tom Tyler, Senior Consultant at Perforce Software, shares practical tips to plan your migration, allay your concerns and prevent a wasteful, misdirected effort.

Transcript of Subversion to Perforce in 30 minutes

Page 1: Subversion to Perforce in 30 minutes

Subversion to Perforce in 30 minutes

Tom Tyler, Perforce Software Consulting Services

Page 2: Subversion to Perforce in 30 minutes

Speaker: Tom Tyler

Tom Tyler is a Senior Consultant at Perforce. He started his career at NASA Kennedy Space Center in 1990, and has worked as a developer and consultant in various software development organizations. Colleagues knew Tom as “The ClearCase Guy” before he discovered Perforce in 1999. He has since been consulting with Perforce customers large and small.

2

Page 3: Subversion to Perforce in 30 minutes

You’re Here Because ...

•  The topic sounded interesting and I'm just curious. There’s no immediate business need.

•  We're contemplating a migration to Perforce.

•  We're committed to migrate to Perforce, and hoping this helps informs our planning

•  We migrated already, and want to see if we missed anything.

A Bit About You?

3

Page 4: Subversion to Perforce in 30 minutes

Agenda

•  Critical Milestones •  Migration Approaches

–  Tips

–  Baseline & Branch Import (“BBI”)

–  Detailed History Import (“DHI”)

•  Transition and Cutover

•  Technical Tips

•  Customer Experience

4

Page 5: Subversion to Perforce in 30 minutes

Critical Milestones

•  Executive Decision: We’re Going to Perforce!

•  Transition Team Ready —  Team Selected

—  Team Trained

•  Migration Plan Ready — Migration Approaches Selected

— Cutover Strategy Defined

—  Transition Strategy Identified

—  Transition Schedule Identified

—  Branching Strategy Planned

5

Page 6: Subversion to Perforce in 30 minutes

Critical Milestones

•  Dry Runs Completed —  Full Dry Runs (Stress & Load)

— Data & process snags addressed

—  Pilot / POC

•  Perforce Environment Ready — Migrated Source Code Verified

—  Build Systems Retooled

—  Build Results Verified

•  Users Trained •  Live on Perforce!

6

Page 7: Subversion to Perforce in 30 minutes

Branching Strategy Mapping the Flow of Change

REL2

MAIN (fka “trunk”)

REL1

REL1.1

Team A

Team B

7

Page 8: Subversion to Perforce in 30 minutes

Perforce Directory Standard (PDS)

perforce.com/blog http://info.perforce.com/PDS.html

8

Page 9: Subversion to Perforce in 30 minutes

Migration Approaches

•  Tips Only

–  Copy tips into new system.

•  Baseline & Branch Import (BBI) -  Bring along only “interesting” history – key

baselines and high-level branch operations.

•  Detailed History Import (DHI) –  Bring historical details into Perforce.

9

Page 10: Subversion to Perforce in 30 minutes

Tips – Latest Files, No History

10

Page 11: Subversion to Perforce in 30 minutes

Tips – Latest Files, No History

11

Page 12: Subversion to Perforce in 30 minutes

Tips – Latest Files, No History

12

All files have only 1 rev.

Page 13: Subversion to Perforce in 30 minutes

Tips – Latest Files, No History

13

One Changelist

All files have only 1 rev.

Page 14: Subversion to Perforce in 30 minutes

Baseline & Branch Import (BBI)

14

Page 15: Subversion to Perforce in 30 minutes

Baseline & Branch Import (BBI)

//fgs/Jam/dev/Port_OSX/src/README

//fgs/Jam/MAIN/src/README

//fgs/Jam/3.0-r/src/README

15

Page 16: Subversion to Perforce in 30 minutes

Baseline & Branch Import (BBI)

//fgs/Jam/dev/Port_OSX/src/README

//fgs/Jam/MAIN/src/README

//fgs/Jam/3.0-r/src/README

16

Page 17: Subversion to Perforce in 30 minutes

Baseline & Branch Import (BBI)

//fgs/Jam/dev/Port_OSX/src/README

//fgs/Jam/MAIN/src/README

//fgs/Jam/3.0-r/src/README

17

One Changelist and description per Baseline.

Page 18: Subversion to Perforce in 30 minutes

Baseline & Branch Import (BBI)

//fgs/Jam/dev/Port_OSX/src/README

//fgs/Jam/MAIN/src/README

//fgs/Jam/3.0-r/src/README

18

Approximately same “time of import” timestamp for all Changelists/Baselines.

Page 19: Subversion to Perforce in 30 minutes

Detailed History Import Read-Only Import Area to “Life In Perforce” Structure

//i_svn/fgs/trunk/…

//fgs/main/…

20

Page 20: Subversion to Perforce in 30 minutes

DHI - File History

21

Page 21: Subversion to Perforce in 30 minutes

DHI - File History

22

Page 22: Subversion to Perforce in 30 minutes

DHI – Folder History

23

Page 23: Subversion to Perforce in 30 minutes

DHI – Folder History

24

Page 24: Subversion to Perforce in 30 minutes

DHI – Folder History

25

Page 25: Subversion to Perforce in 30 minutes

DHI – Folder History

26

Page 26: Subversion to Perforce in 30 minutes

Transition and Cutover

•  Grand Opening –  Friday Subversion, Monday Perforce!

•  Phased by Team

–  Beware software dependencies. –  Beware dependencies of collaborating teams. –  Limitations of migration utilities can limit cutover options.

27

Page 27: Subversion to Perforce in 30 minutes

Subversion Migration Tech Tips

•  Case Issues: Convert on same platform as server •  Provision Adequate Hardware Resources! •  Typemap, file types, and Unicode •  SVN Empty directories

–  Use ‘.d’ or README files

–  Make dirs in build/deploy files, Makefiles, etc.

28

Page 28: Subversion to Perforce in 30 minutes

Subversion Migration Tech Tips

•  Handling SVN Properties –  Use Perforce Attributes

•  Handling SVN Externals –  Use flexibility of Workspace Mapping

–  Add Version Specifier files

•  Keep SVN around for a while

29

Page 29: Subversion to Perforce in 30 minutes

Why Migrate? Top 6

30

Drivers Benefits •  Vastly more powerful

branching & merging •  A whole ‘nother level of

capability

•  Scalability •  A whole ‘nother level of scalability

•  Better Visualizations (GUI) •  Faster/better merges and detection of need to merge

•  Preference for Best of Breed •  Put Developers at the top of their craft

•  Faster •  Faster

•  Standardization and Consolidation

•  Better ROI on Backup, HA/DR Solutions, Infrastructure

Page 30: Subversion to Perforce in 30 minutes

Customer Experience

I want to take this opportunity to acknowledge an outstanding job done by you supporting us through our Perforce migration.

- Perforce Customer

31

“ ”

Page 31: Subversion to Perforce in 30 minutes

Customer Experience

I also had boasted the lofty goal before we executed the migration that I was aiming for zero loss of productivity to our <snip> project as the result of this migration. I think I can make a case that this came true, also. - Perforce Customer

32

Page 32: Subversion to Perforce in 30 minutes

Customer Experience

I have had several people comment to me that they are impressed at how smooth the whole migration process has been. - Perforce Customer

33

“ ”

Page 33: Subversion to Perforce in 30 minutes

Thank You!

Please Send us Your Questions!

34

Page 34: Subversion to Perforce in 30 minutes

You’d like to know more about ....

•  Migration Planning •  Migration Approaches •  Technical Snags •  Transition and Cutover •  Details of DHI Tools

Polling Question

35

Page 35: Subversion to Perforce in 30 minutes

Resources

•  Website: www.perforce.com •  Visit the Multimedia Library •  Demo: [email protected] •  Support: [email protected] •  Consulting: [email protected] •  Phone: 510-864-7400

36