Mercurial > jhg
diff cmdline/org/tmatesoft/hg/console/Main.java @ 362:4937e35b805b
Report dirstate access error with Exception
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 09 Dec 2011 01:14:41 +0100 |
parents | 150500515714 |
children | 189dc6dc1c3e |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java Fri Dec 09 01:13:53 2011 +0100 +++ b/cmdline/org/tmatesoft/hg/console/Main.java Fri Dec 09 01:14:41 2011 +0100 @@ -334,10 +334,10 @@ cmd.execute(sink); System.out.println(sink.toArray().length); HgFileInformer i = new HgFileInformer(hgRepo); - boolean result = i.changeset(cset).check(file); + boolean result = i.changeset(cset).checkExists(file); Assert.assertFalse(result); Assert.assertFalse(i.exists()); - result = i.followRenames(true).check(file); + result = i.followRenames(true).checkExists(file); Assert.assertTrue(result); Assert.assertTrue(i.exists()); HgCatCommand cmd2 = new HgCatCommand(hgRepo).revision(i.getFileRevision()); @@ -367,7 +367,7 @@ return String.format("%s %s (%d bytes)", r.getPath(), r.getRevision(), sink.toArray().length); } - private void testFileStatus() throws IOException { + private void testFileStatus() throws HgException, IOException { // final Path path = Path.create("src/org/tmatesoft/hg/util/"); // final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java"); // final Path path = Path.create("missing-dir/");