Giter Site home page Giter Site logo

leonjalfon1 / tfschangesetsbydate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10 KB

Powershell script to retrieve changesets by dates and generate a simple summary report file

Home Page: http://blogs.microsoft.co.il/leonj/

License: MIT License

PowerShell 100.00%
tfs tfvc powershell changeset

tfschangesetsbydate's Introduction

TFSChangesetsByDate

Powershell script to retrieve changesets by dates and generate a simple summary report file


Example Uses

  • Find all the changesets created between two dates
  • Find the total of changesets between two dates
  • Find the total of changesets by month in the last year
  • Find who did changes in specific path between two dates

Requisites


Parameters

Mandatory

Path

  • Path in source control (directory or file)
  • Example: "$/TeamProject/Branch/Directory"

CollectionUrl

Dates

  • Must meet the following format {StartDay/StartMonth/StartYear-EndDay/EndMonth/EndYear}
  • You can set several dates separated by ';'
  • Example: "1/2/2016-1/4/2016;1/4/2016-1/6/2016;1/6/2016-1/8/2016"

Optional

TFPath

  • Path where TF.exe is stored
  • By default TF.exe the tool searched in the path "C:\Program Files (x86){VS 17,15,13}\Common7\IDE"
  • For Example: "C:\Program Files\TFVC"

File

  • Specify the file where the summary will be created (the default is "Desktop\ChangesetsByDates_{datetime}")
  • Example: "C:\Users\User\Desktop\TFSChangesetsByDates\Summary.txt"

Usage

  • Mandatory
.\TFSChangesetsByDates.ps1 -Path "$/TP/Branch/Directory" -CollectionUrl "http://tfsserver:8080/tfs/Collection" -Dates "1/2/2016-1/4/2016;1/4/2016-1/6/2016;1/6/2016-1/8/2016"
  • All
.\TFSChangesetsByDates.ps1 -Path "$/TP/Branch/Directory" -CollectionUrl "http://tfsserver:8080/tfs/Collection" -Dates "1/2/2016-1/4/2016;1/4/2016-1/6/2016;1/6/2016-1/8/2016" -TFPath "C:\Program Files\TFVC" -File "C:\Users\User\Desktop\TFSChangesetsByDates\Summary.txt"

Summary Report

  • Show the total changesets between each interval
  • Show the total changesets in all the intervals
  • Show the changesets details in each interval
  • See an example in the SummaryReportExample

Contributing

  • Please feel free to contribute, suggest ideas or open issues

tfschangesetsbydate's People

Contributors

leonjalfon1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.