Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/RepositoryComparator.java @ 206:63c9fed4369e
Sample command line tools for incoming/outgoing to use commands
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 28 Apr 2011 02:47:44 +0200 |
parents | 66fd2c73c56f |
children | 1bf0a5af2d5d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RepositoryComparator.java Thu Apr 28 02:00:42 2011 +0200 +++ b/src/org/tmatesoft/hg/internal/RepositoryComparator.java Thu Apr 28 02:47:44 2011 +0200 @@ -47,6 +47,7 @@ */ public class RepositoryComparator { + private final boolean debug = Boolean.parseBoolean(System.getProperty("hg4j.remote.debug")); private final HgChangelog.ParentWalker localRepo; private final HgRemoteRepository remoteRepo; private List<Nodeid> common; @@ -305,6 +306,12 @@ throw new HgBadStateException(String.format("Can't narrow down branch [%s, %s]", rb.head.shortNotation(), rb.root.shortNotation())); } } + if (debug) { + for (BranchChain bc : branches2load) { + System.out.println("calculateMissingBranches:"); + bc.dump(); + } + } return branches2load; } @@ -343,7 +350,7 @@ return String.format("BranchChain [%s, %s]", branchRoot, branchHead); } - public void dump() { + void dump() { System.out.println(toString()); internalDump(" "); }