Upload
penelope-wilcox
View
221
Download
0
Tags:
Embed Size (px)
Citation preview
05 | Administer Version Control
Steven Borg | Co-founder & Strategist, Northwest CadenceAnthony Borton | ALM Consultant, Enhance ALM
• Create and manage workspaces
• Configure version control proxy
• Configure team project version control settings
Module Overview
Click to edit Master subtitle style
Microsoft Virtual AcademyCreate and manage
workspaces
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
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
Edit Workspace Settings
• Command line: Use tf workspace
• UI: Use Manage Workspaces -> Advanced
Cloaking a Working folder
• Command line: Use tf workfold
• UI: Use Manage Workspaces
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.
Configure Default Workspace Type
• Default workspace types (local vs server) can be set at the collection level.
DEMO
Microsoft Virtual Academy
Create and Manage Workspaces
Click to edit Master subtitle style
Microsoft Virtual AcademyConfigure version control
proxy
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
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
Installing a Proxy Server
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" />
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>
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>
DEMO
Microsoft Virtual Academy
Configure Version Control Proxy
Click to edit Master subtitle style
Microsoft Virtual AcademyConfigure team project
version control settings
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)
MSDN Resources
Topic Link
enabling multiple checkout http://examcr.am/15hUMku
enabling get latest on checkout http://examcr.am/15hUMku
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.
Configuring Check-in Policies
Code Analysis Policy Editor
DEMO
Microsoft Virtual Academy
Configure team project version control settings
• 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
©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.