Skip to content

Instantly share code, notes, and snippets.

@robertpi
Created April 22, 2010 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertpi/375162 to your computer and use it in GitHub Desktop.
Save robertpi/375162 to your computer and use it in GitHub Desktop.
// scrip for finding problem "svn: Attempt to add tree conflict that already exists"
open System.IO
let logLines =
File.ReadAllLines @"C:\USERS\Visual Studio 2008\Projects\FindDup\FindDup\svnlog.txt"
|> Seq.filter (fun x -> x.StartsWith("Tree conflict:"))
|> Seq.groupBy (fun x -> x)
|> Seq.map (fun (key, vals) -> key, Seq.length vals)
|> Seq.filter (fun (_, count) -> count > 1)
Seq.iter (printfn "%A") logLines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment