Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created May 27, 2015 21:30
Show Gist options
  • Save matt40k/c5ee8042c38e0cd1f216 to your computer and use it in GitHub Desktop.
Save matt40k/c5ee8042c38e0cd1f216 to your computer and use it in GitHub Desktop.
([xml](svn log -v --xml)).log.logentry | % {
$entry = $_;
$_.paths.path | foreach {
$obj = 1 | select -Property Revision,Author,Date,Message,Action,FilePath;
$obj.Revision = [int]$entry.Revision;
$obj.Author = $entry.Author;
$obj.Date = Get-Date $entry.Date;
$obj.Message = $entry.msg;
$obj.Action = $_.action;
$obj.FilePath = $_.InnerText;
return $obj;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment