From d93b0d354a427173ad10f2449d6cfdd0baaa3da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Pi=C4=85tek?= Date: Sun, 6 Nov 2016 13:15:48 +0100 Subject: [PATCH 1/4] Update GenerateReport.ps1 Add missing library import --- src/GenerateReport.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GenerateReport.ps1 b/src/GenerateReport.ps1 index 2a3436e..519870c 100644 --- a/src/GenerateReport.ps1 +++ b/src/GenerateReport.ps1 @@ -133,6 +133,7 @@ function Get-GitLog{ param($OutFilePath) Write-Verbose "Start collecting Git log" + Add-Type -AssemblyName System.Web $currentLocation = Get-Location Set-Location $CheckoutDir $logentrySeparator = [guid]::NewGuid() @@ -192,4 +193,4 @@ switch($VCS) } Bundle-Report -ClocDataFile "$tmpDir\cloc.csv" -SvnLogFile "$tmpDir\svnlogfile.xml" -OutDataFile "$tmpDir\result.json" -Remove-Item $tmpDir -Recurse -Force \ No newline at end of file +Remove-Item $tmpDir -Recurse -Force From 0f94d1529b113ced36bc27feae4890e63e1348f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Pi=C4=85tek?= Date: Sun, 6 Nov 2016 14:00:09 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae6421b..bb8fb11 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ To generate CodeTopology report run the following script from powershell console ``` ###Prerequisites -1. CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option. +1. CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option. This is required only for SVN repositories. -2. Script file dowloaded from the internet may be locked. Before running script remember to unlock file in file's options. +2. Script file dowloaded from the internet may be blocked. Before running script remember to unblock file in file's options. In order to unblock script go to file options, find "Security" section on "General" tab and select "Unblock" option. ##TeamCity integration From 4b091c9d2a6b4b1010ebb8e7745a6623c20d75d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Pi=C4=85tek?= Date: Sun, 6 Nov 2016 14:03:26 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb8fb11..a1245f1 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,22 @@ Supported repositories: ##How to use it +###Prerequisites +1. CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option. This is required only for SVN repositories. + +2. Script file dowloaded from the internet may be blocked. Before running script remember to unblock file in file's options. In order to unblock script go to file options, find "Security" section on "General" tab and select "Unblock" option. + +###Generate report To generate CodeTopology report run the following script from powershell console +- For Git repository ```powershell .\GenerateReport.ps1 -Verbose -VCS Git -CheckoutDir path_to_your_repository_checkout_dir ``` - -###Prerequisites -1. CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option. This is required only for SVN repositories. - -2. Script file dowloaded from the internet may be blocked. Before running script remember to unblock file in file's options. In order to unblock script go to file options, find "Security" section on "General" tab and select "Unblock" option. +- For SVN repository +```powershell +.\GenerateReport.ps1 -Verbose -VCS SVN -CheckoutDir path_to_your_repository_checkout_dir +``` ##TeamCity integration From 090fbf9bae9baf8f5d7d1743b6f717a7643a856b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Pi=C4=85tek?= Date: Sun, 6 Nov 2016 14:04:45 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a1245f1..f34568c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Supported repositories: ###Prerequisites 1. CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option. This is required only for SVN repositories. -2. Script file dowloaded from the internet may be blocked. Before running script remember to unblock file in file's options. In order to unblock script go to file options, find "Security" section on "General" tab and select "Unblock" option. +2. Script file dowloaded from the internet may be blocked. Before running script remember to unblock GenerateReport.ps1 file. In order to unblock script go to file options, find "Security" section on "General" tab and select "Unblock" option. ###Generate report To generate CodeTopology report run the following script from powershell console