Ejemplo n.º 1
0
 public IBodyFile Show(string revision, string filePath)                                               //[+-]
 {
     //TODO
     using (var blame = hg.Blame(revision, filePath))
     {
         return(HgBodyFile.Parse(blame));
     }
 }
Ejemplo n.º 2
0
        public static HgBodyFile Parse(Stream fileData)
        {
            TextReader reader = new StreamReader(fileData);

            HgBodyFile bodyFile = new HgBodyFile();
            string     line;

            while ((line = reader.ReadLine()) != null)
            {
                bodyFile.Add(line);
            }

            return(bodyFile);
        }