05 | administer version control steven borg | co-founder & strategist, northwest cadence anthony...

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

Upload: penelope-wilcox

Post on 03-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

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

05 | Administer Version Control

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

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

• Create and manage workspaces

• Configure version control proxy

• Configure team project version control settings

Module Overview

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

Click to edit Master subtitle style

Microsoft Virtual AcademyCreate and manage

workspaces

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

MSDN Resources

Topic Linkdeciding between local and server workspaces http://examcr.am/1120LFJ

modifying a workspace (including cloaking) http://examcr.am/157uylb

undoing 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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

Edit Workspace Settings

• Command line: Use tf workspace

• UI: Use Manage Workspaces -> Advanced

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

Cloaking a Working folder

• Command line: Use tf workfold

• UI: Use Manage Workspaces

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

Configure Default Workspace Type

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

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

DEMO

Microsoft Virtual Academy

Create and Manage Workspaces

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

Click to edit Master subtitle style

Microsoft Virtual AcademyConfigure version control

proxy

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

MSDN Resources

Topic 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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

Installing a Proxy Server

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

DEMO

Microsoft Virtual Academy

Configure Version Control Proxy

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

Click to edit Master subtitle style

Microsoft Virtual AcademyConfigure team project

version control settings

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

MSDN Resources

Topic Link

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

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

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

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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

Configuring Check-in Policies

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

Code Analysis Policy Editor

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

DEMO

Microsoft Virtual Academy

Configure team project version control settings

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

• 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: 05 | Administer Version Control Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM

©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.