Exemplo n.º 1
0
        public void TestAnnotate()
        {
            string path = GetTemporaryPath();
            string file = Path.Combine(path, "foo");

            CommandClient.Initialize(path, MercurialPath);

            using (var client = new CommandClient(path, null, null, MercurialPath)) {
                File.WriteAllText(file, "1");
                client.Add(file);
                client.Commit("1", null, false, false, null, null, null, null, "user");
                Assert.AreEqual("user 0: 1\n", client.Annotate(null, file));
            }
        }