comparison test/org/tmatesoft/hg/test/TestIncoming.java @ 204:883f1efbcf27

Add clone,incoming and outging tests
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 26 Apr 2011 23:58:15 +0200
parents 66fd2c73c56f
children 41a778e3fd31
comparison
equal deleted inserted replaced
203:66fd2c73c56f 204:883f1efbcf27
68 // Idea: 68 // Idea:
69 // hg in, hg4j in, compare 69 // hg in, hg4j in, compare
70 // hg pull total/2 70 // hg pull total/2
71 // hg in, hg4j in, compare 71 // hg in, hg4j in, compare
72 List<Nodeid> incoming = runAndCompareIncoming(localRepo, hgRemote); 72 List<Nodeid> incoming = runAndCompareIncoming(localRepo, hgRemote);
73 Assert.assertTrue("Need remote repository of reasonable size to test incoming command for partially filled case", incoming.size() > 5); 73 Assert.assertTrue("Need remote repository of reasonable size to test incoming command for partially filled case", incoming.size() >= 5);
74 // 74 //
75 Nodeid median = incoming.get(incoming.size() / 2); 75 Nodeid median = incoming.get(incoming.size() / 2);
76 System.out.println("About to pull up to revision " + median.shortNotation()); 76 System.out.println("About to pull up to revision " + median.shortNotation());
77 new ExecHelper(new OutputParser.Stub(), dest).run("hg", "pull", "-r", median.toString(), hgRemote.getLocation()); 77 new ExecHelper(new OutputParser.Stub(), dest).run("hg", "pull", "-r", median.toString(), hgRemote.getLocation());
78 // 78 //