Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/Main.java @ 197:3a7696fb457c
Investigate optimization options to allow fast processing of huge repositories. Fix defect in StatusCollector that lead to wrong result comparing first revision to empty repo (-1 to 0), due to same TIP constant value
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 19 Apr 2011 03:49:29 +0200 |
parents | b413b16d10a5 |
children | 8de327242aa0 |
comparison
equal
deleted
inserted
replaced
196:e2115da4cf6a | 197:3a7696fb457c |
---|---|
223 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length); | 223 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length); |
224 System.out.println(s + " : " + n.length(nid)); | 224 System.out.println(s + " : " + n.length(nid)); |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 static void force_gc() { | |
229 Runtime.getRuntime().runFinalization(); | |
230 Runtime.getRuntime().gc(); | |
231 Thread.yield(); | |
232 Runtime.getRuntime().runFinalization(); | |
233 Runtime.getRuntime().gc(); | |
234 Thread.yield(); | |
235 } | |
236 | |
228 private static class StatusDump implements HgStatusInspector { | 237 private static class StatusDump implements HgStatusInspector { |
229 public boolean hideStatusPrefix = false; // hg status -n option | 238 public boolean hideStatusPrefix = false; // hg status -n option |
230 public boolean showCopied = true; // -C | 239 public boolean showCopied = true; // -C |
231 public boolean showIgnored = true; // -i | 240 public boolean showIgnored = true; // -i |
232 public boolean showClean = true; // -c | 241 public boolean showClean = true; // -c |