public void TestConnectFromTfsWorkspace()
 {
     Environment.CurrentDirectory = @"C:\development\Jewel.Release.Oahu";
     String url = "http://bhiabztfs01:8080";
     var commits = new Commits();
     commits.Connect(url);
     Assert.IsTrue(true);
 }
Esempio n. 2
0
        private static void TryBlame(string[] args)
        {
            ArgumentParser parser = new ArgumentParser();
            parser.Parse(args);
            String file = parser.File;
            Commits commits = new Commits();
            commits.Connect();
            Blame blame = new Blame(commits);

            String result=blame.RunAnnotate(file);
            Console.WriteLine(result);
        }
        private static void TryBlame(string[] args)
        {
            ArgumentParser parser = new ArgumentParser();
            parser.Parse(args);
            if (parser.Version)
            {
                Console.WriteLine(Assembly.GetExecutingAssembly().GetName().Version);
                return;
            }
            String file = parser.File;
            String url = parser.Url;
            if (file == null || url == null)
            {
                Usage();
                return;
            }
            Commits commits = new Commits();
            commits.Connect(url);
            Blame blame = new Blame(commits);

            String result=blame.RunAnnotate(file);
            Console.WriteLine(result);
        }