Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestHistory.java @ 510:90093ee56c0d
Full-fledged test repo to follow file history. Investigating iteration direction alternatives (from new to old in addition to existing old to new)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 13 Dec 2012 15:46:40 +0100 |
parents | a30e74dca193 |
children | 5dcb4581c8ef |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestHistory.java Thu Dec 13 13:18:35 2012 +0100 +++ b/test/org/tmatesoft/hg/test/TestHistory.java Thu Dec 13 15:46:40 2012 +0100 @@ -138,10 +138,10 @@ @Test public void testChangesetTreeFollowRename() throws Exception { - // FIXME better test with more than 1 rename, and renames not from the last revision (somewhere from the middle of the origin change history) - final String fname = "cmdline/org/tmatesoft/hg/console/Remote.java"; + repo = Configuration.get().find("log-follow"); + final String fname = "file1_b"; assertTrue("[sanity]", repo.getFileNode(fname).exists()); - eh.run("hg", "log", "--debug", "--follow", fname); + eh.run("hg", "log", "--debug", "--follow", fname, "--cwd", repo.getLocation()); TreeCollectHandler h = new TreeCollectHandler(true); h.checkPrevInParents = true;