Пример #1
0
		public static void CheckoutTest (string hash, string objStorePath)
		{
			ObjectStore store = new ObjectStore (objStorePath);
			
			SHA1 id = new SHA1 (SHA1.FromHexString (hash), false);
			
			Console.WriteLine ("Hash: " + hash);
			Console.WriteLine ("Id:   " + id.ToHexString ());
			
			Console.WriteLine ("hash created");
			
			Tree tree = (Tree) store.Get (id);
			
			Console.WriteLine ("tree created No. entries: " + tree.Entries.Length);
			
			store.Checkout (Environment.CurrentDirectory, tree);
			
			Console.WriteLine ("Checkout done WIIIII!!!");
		}