Skip to content

Commit

Permalink
Fixes an issue where ApplyLocalItemExclusions was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Feb 22, 2016
1 parent 960a7e1 commit d20d7f6
Show file tree
Hide file tree
Showing 8 changed files with 1,050 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .tfIgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.vsix
*.user
*.lastpatched
*.lastpackaged
1,030 changes: 1,030 additions & 0 deletions .vs/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/vsts-tfvc-tasks/v14/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion extension-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "jessehouwing-vsts-tfvc-tasks",
"name": "TFVC Build Tasks",
"version": "1.0.35",
"version": "1.0.44",
"publisher": "jessehouwing",
"public": true,
"targets": [
Expand Down
17 changes: 12 additions & 5 deletions vsts-tfvc-add/TfvcAdd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,23 @@ Try
{
Write-Warning $e.Exception.Message
}
if ($e.Faulure -ne $null)
if ($e.Failure -ne $null -and $e.Failure.Message -ne $null)
{
Write-Warning $e.Failure.ToString()
Write-Warning $e.Failure.Message
if ($e.Failure.Warnings.Length -gt 0)
{
foreach ($warning in $e.Failure.Warnings)
{
Write-Warning $warning.ParentOrChildTask
}
}
}
}
$provider.VersionControlServer.add_NonFatalError($OnNonFatalError)

$provider.Workspace.Refresh()

Write-Output "Adding ItemSpec: $ItemSpec, Recursive: $recursive"
Write-Output "Adding ItemSpec: $ItemSpec, Recursive: $recursive, Apply Ignorefile: $ApplyLocalitemExclusions"

if (-not $Itemspec -eq "")
{
Expand All @@ -226,8 +233,8 @@ Try
$null,
[Microsoft.TeamFoundation.VersionControl.Client.LockLevel]"Unchanged",
$false,
$true,
$ApplyLocalitemExclusions
$false,
($ApplyLocalitemExclusions -eq $true)
) | Out-Null
}
}
Expand Down
2 changes: 1 addition & 1 deletion vsts-tfvc-add/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 103
"Patch": 113
},
"minimumAgentVersion": "1.83.0",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion vsts-tfvc-checkin/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 134
"Patch": 144
},
"visibility": [
"Build"
Expand Down
1 change: 1 addition & 0 deletions vsts-tfvc-tasks.sln
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Licenses", "Licenses", "{E2
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{76607A2E-B176-45F4-8452-181A5FF89EC4}"
ProjectSection(SolutionItems) = preProject
.tfIgnore = .tfIgnore
commands.json = commands.json
publish.ps1 = publish.ps1
EndProjectSection
Expand Down

0 comments on commit d20d7f6

Please sign in to comment.