Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 450443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:52:10+00:00 2026-05-12T21:52:10+00:00

I need to know what changes (if any) have happened at a particular level

  • 0

I need to know what changes (if any) have happened at a particular level in our source control tree. Is there some way to make such a query of TFS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:52:11+00:00Added an answer on May 12, 2026 at 9:52 pm

    Using Team Explorer:

    1. Open Source Control Explorer
    2. Navigate to desired source control folder
    3. Right-click and choose View History

    Shows you all of the changesets that have been checked in at that level in the tree or below.

    Using the tf utility:

    tf history c:\localFolder -r -format:detailed

    Here’s a link to the tf history documentation for more details on usage: link

    Using the TFS SDK to do it programatically:

    Here’s a sample method based on some of our code. It takes a path, start time and end time and gives you all of the changeset details below that path in between the two specified times:

    private StringBuilder GetTfsModifications(string tfsPath, DateTime startTime, DateTime endTime)
    {
        StringBuilder bodyContent = new StringBuilder();
    
        TeamFoundationServer tfs = new TeamFoundationServer("YourServerNameHere");
        VersionControlServer vcs = (VersionControlServer)tfs.GetService(typeof(VersionControlServer));
    
        // Get collection of changesets below the given path
        System.Collections.IEnumerable changesets = vcs.QueryHistory(
                tfsPath, 
                VersionSpec.Latest, 
                0, 
                RecursionType.Full, 
                null, 
                new DateVersionSpec(startTime), 
                new DateVersionSpec(endTime), 
                int.MaxValue, 
                true, 
                false);
    
        // Iterate through changesets and extract any data you want from them
        foreach (Changeset changeset in changesets)
        {
            StringBuilder changes = new StringBuilder();
            StringBuilder assocWorkItems = new StringBuilder();
    
            // Create a list of the associated work items for the ChangeSet
            foreach (WorkItem assocWorkItem in changeset.WorkItems)
            {
                assocWorkItems.Append(assocWorkItem.Id.ToString());
            }
    
            // Get details from each of the changes in the changeset
            foreach (Change change in changeset.Changes)
            {
                changes.AppendLine(string.Format(CultureInfo.InvariantCulture, "\t{0}\t{1}", 
                        PendingChange.GetLocalizedStringForChangeType(change.ChangeType), 
                        change.Item.ServerItem));
            }
    
            // Get some details from the changeset and append the individual change details below it
            if (changes.Length > 0)
            {
                bodyContent.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}\t{1}\t{2}\t{3}\t{4}", 
                        changeset.ChangesetId, 
                        changeset.Committer.Substring(changeset.Committer.IndexOf('\\') + 1), 
                        changeset.CreationDate, 
                        changeset.Comment, 
                        assocWorkItems.ToString()));
                bodyContent.Append(changes.ToString());
            }
        }
    
        return bodyContent;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to know when the memory will be allocated for a particular program.
I need to know about Epoll On linux System. Could you recommend manual or
I need to know how the performance of different XML tools (parsers, validators, XPath
I need to know how much space occupies all the databases inside an SQL
I need to know how to turn on Code Coverage when running TFS builds
I need to know, from within Powershell, if the current drive is a mapped
I need to know how I get the stream of the headers and footers
I need to know what internet connection is available when my application is running.
I need to know when the user finishes editing a cell in an NSTableView.
I need to know what is code compiled unit in .net. It s located

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.