steven borg | co-founder & strategist, northwest cadence

27
05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

Upload: zanthe

Post on 22-Feb-2016

25 views

Category:

Documents


0 download

DESCRIPTION

05 | Administer Version Control. Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM. Module Overview. Create and manage workspaces Configure version control proxy Configure team project version control settings. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Steven Borg | Co-founder & Strategist, Northwest Cadence

05 | Administer Version Control

Steven Borg | Co-founder & Strategist, Northwest CadenceAnthony Borton | ALM Consultant, Enhance ALM

Page 2: Steven Borg | Co-founder & Strategist, Northwest Cadence

• Create and manage workspaces• Configure version control proxy• Configure team project version control settings

Module Overview

Page 3: Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyCreate and manage

workspaces

Page 4: Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• Create and manage workspaces.– cloaking, undoing delete, and modifying a workspace– deleting a workspace; specifying workspace visibility– unlocking other users’ checkouts, pending changes, and

code– choosing a default workspace type for a collection– deleting a shelveset

Page 5: Steven Borg | Co-founder & Strategist, Northwest Cadence

MSDN ResourcesTopic Linkdeciding between local and server workspaces http://examcr.am/1120LFJ modifying a workspace (including cloaking) http://examcr.am/157uylbundoing delete http://examcr.am/11or2xX deleting a workspace http://examcr.am/13Yh9wa

unlocking other users' checkouts, pending changes and code http://examcr.am/174dP5T

choosing a default workspace type for a collection http://examcr.am/15hVuyn

deleting a shelveset http://examcr.am/174dQqr

Page 6: Steven Borg | Co-founder & Strategist, Northwest Cadence

Edit Workspace Settings

• Command line: Use tf workspace

• UI: Use Manage Workspaces -> Advanced

Page 7: Steven Borg | Co-founder & Strategist, Northwest Cadence

Cloaking a Working folder

• Command line: Use tf workfold

• UI: Use Manage Workspaces

Page 8: Steven Borg | Co-founder & Strategist, Northwest Cadence

Undeleting a File

• To restore an item deleted from the server– From the menu bar choose Tools, Options.– On the Options dialog box, navigate to Source

Control, Visual Studio Team Foundation Server.– Select Show deleted items in the Source Control

Explorer, and then choose OK.– From the menu bar choose View, Other

Windows, Source Control Explorer.– In Source Control Explorer, navigate to the folder that

contains the item you want to restore.– Open the item’s shortcut menu and then

choose Undelete.

Page 9: Steven Borg | Co-founder & Strategist, Northwest Cadence

Configure Default Workspace Type

• Default workspace types (local vs server) can be set at the collection level.

Page 10: Steven Borg | Co-founder & Strategist, Northwest Cadence

DEMO

Microsoft Virtual Academy

Create and Manage Workspaces

Page 11: Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyConfigure version control

proxy

Page 12: Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• Configure version control proxy.– setting up the cache hit ratio– setting up the cache size– setting up for multiple Team Foundation Server servers

Page 13: Steven Borg | Co-founder & Strategist, Northwest Cadence

MSDN ResourcesTopic Link

measuring the cache hit ratio http://examcr.am/ZdF5Ki

setting up the cache size http://examcr.am/19ljVhC

setting up for multiple Team Foundation Server servers http://examcr.am/ZszLVM

Using the Proxy.config file http://examcr.am/119RijM

Page 14: Steven Borg | Co-founder & Strategist, Northwest Cadence

Installing a Proxy Server

Page 15: Steven Borg | Co-founder & Strategist, Northwest Cadence

Measuring the Cache Hit Ratio

• To view cache performance by using the ProxyStatistics Web service– Log onto the server whose performance you want to

monitor– For Team Foundation Server Proxy using the default

settings for port: http://localhost:8081/VersionControlProxy/v1.0/ProxyStatistics.asmx

– Click QueryProxyStatistics, and then click Invoke– An XML output file shows data including

OverallCacheMisses, CacheHitsPercentage, and CacheMissPercentage

<ProxyStatisticsInfo CurrentCacheSize="356352" NoOfRequests="82" OverallCacheHits="41" NoOfFilesInCache="41" OverallCacheMisses="41" CacheHitsPercentage="50" CacheMissPercentage="50" />

Page 16: Steven Borg | Co-founder & Strategist, Northwest Cadence

Proxy.config <?xml version="1.0" encoding="utf-8"?><ProxyConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Servers> <Server><Uri>http://vsalm:8080/tfs/fabrikamfibercollection/</Uri></Server> <Server> <Uri>http://vsalm:8080/tfs/tailspintoyscollection/</Uri> </Server> </Servers> <!-- Proxy file cache root folder --> <CacheRoot>C:\Program Files\Microsoft Team Foundation Server 11.0\Version Control Proxy\_tfs_data</CacheRoot> <CacheLimitPolicy> … <!-- Cache limit expressed as percentage of disk space --> <PercentageBasedPolicy>75</PercentageBasedPolicy> <!-- Cache limit expressed as MB --> <!-- <FixedSizeBasedPolicy></FixedSizeBasedPolicy> --> </CacheLimitPolicy>

Page 17: Steven Borg | Co-founder & Strategist, Northwest Cadence

Proxy.config (cont)

<!-- The maximum age (in days) of content in the cache following a cleanup operation --> <DeletionAgeThreshold>30</DeletionAgeThreshold> <!-- Percentage of cache size that needs to be freed up, on hitting cache limit --> <CacheDeletionPercent>10</CacheDeletionPercent> <!-- Indicates how often (number of hours) the proxy statistics information should be persisted to a file--> <StatisticsPersistTime>1</StatisticsPersistTime>

</ProxyConfiguration>

Page 18: Steven Borg | Co-founder & Strategist, Northwest Cadence

DEMO

Microsoft Virtual Academy

Configure Version Control Proxy

Page 19: Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyConfigure team project

version control settings

Page 20: Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• Configure team project version control settings.– enabling multiple checkout– enabling get latest on checkout– configuring check-in policies for a team project (Work

Items, builds, code analysis, testing policies)

Page 21: Steven Borg | Co-founder & Strategist, Northwest Cadence

MSDN ResourcesTopic Link

enabling multiple checkout http://examcr.am/15hUMku

enabling get latest on checkout http://examcr.am/15hUMku

Page 22: Steven Borg | Co-founder & Strategist, Northwest Cadence

Configuring Checkout Settings

• To configure checkout settings– In Team Explorer, select the team project for which you

want to configure check-out settings.– From the Team menu, click Team Project Settings, and

then click Source Control.– In the Source Control Settings dialog box, select

the Check-out Settings tab.– Select or clear the Enable multiple checkout box.– Select or clear the Enable get latest on check-out box.– Click OK.

Page 23: Steven Borg | Co-founder & Strategist, Northwest Cadence

Configuring Check-in Policies

Page 24: Steven Borg | Co-founder & Strategist, Northwest Cadence

Code Analysis Policy Editor

Page 25: Steven Borg | Co-founder & Strategist, Northwest Cadence

DEMO

Microsoft Virtual Academy

Configure team project version control settings

Page 26: Steven Borg | Co-founder & Strategist, Northwest Cadence

• Understand the differences between local and server workspaces

• Be able to explain cloaked folders• Know the available options for configuring a proxy

server– Especially the options found in Proxy.config

• Practice setting up version control check-in policies, especially those that come out-of-the-box–Work Items, Builds, Code Analysis

• Understand how to undelete a file

EXAM BEST BETS

Page 27: Steven Borg | Co-founder & Strategist, Northwest Cadence

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.