Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

# Scan the Repo and the Backup Repo and warn about Repos that have changed
# Useful after doing a HotBackup to see if any work has been committed
#

$Repo = "E:\Repositories"
$BRepo = "e:\Backup_Repositories"
Get-ChildItem $Repo  | ?{ $_.PSIsContainer } | ForEach-Object { 
        $rname = $_.Name
        $a = svnlook youngest "$Repo\$rname"
        $b = svnlook youngest "$BRepo\$rname"
        if ( $a -eq $b ) {
                Write-Host $_.Name, " : Same"
        } else {
                Write-Host $_.Name, " :  ------- Different"
        }
}