270 likes | 366 Views
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.
E N D
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
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
Edit Workspace Settings • Command line: Use tf workspace • UI: Use Manage Workspaces -> Advanced
Cloaking a Working folder • Command line: Use tfworkfold • 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.
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
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 • ClickQueryProxyStatistics, and then click Invoke • An XML output file shows data including OverallCacheMisses, CacheHitsPercentage, and CacheMissPercentage <ProxyStatisticsInfoCurrentCacheSize="356352" NoOfRequests="82" OverallCacheHits="41" NoOfFilesInCache="41" OverallCacheMisses="41" CacheHitsPercentage="50" CacheMissPercentage="50" />
Proxy.config <?xml version="1.0" encoding="utf-8"?> <ProxyConfigurationxmlns: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>
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)
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 TeamProjectSettings, and then click SourceControl. • In the SourceControlSettings 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.
EXAM BEST BETS • 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