Created
March 18, 2011 15:58
-
-
Save RhysC/876323 to your computer and use it in GitHub Desktop.
Get the svn externs for all folder and provide a distinct list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get the svn externs for all folders and provide a distinct list | |
$svnDirectory="c:\sg\programfiles\svn\1.6.6.40053" #NOTE : put your svn path here | |
$svnExe="$svnDirectory\svn.exe" | |
$externs = & $svnExe propget svn:externals -R | |
$externs | sort | Get-Unique >> DistinctSvnExternal.txt #Raw file | |
$uniqueDependencies = @{}; | |
$externs | sort | Get-Unique | | |
%{ | |
$val = $_.split(" ")[0]; | |
$uniqueDependencies[$val] = $val | |
} | |
$DistinctSvnExternalValues = $uniqueDependencies.GetEnumerator() | | |
Sort-Object Value -descending | | |
select value | |
$DistinctSvnExternalValues > DistinctSvnExternalValues.txt #Cleaner file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment