Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgStatusCollector.java @ 284:7232b94f2ae3
HgDirstate shall operate with Path instead of String for file names. Use of Pair instead of array of unspecified length for parents.
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 03 Sep 2011 13:12:13 +0200 |
parents | e51dd9a14b6f |
children | 6dbbc53fc46d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgStatusCollector.java Sat Sep 03 13:10:12 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgStatusCollector.java Sat Sep 03 13:12:13 2011 +0200 @@ -65,9 +65,7 @@ cacheNodes = new Pool<Nodeid>(); cacheFilenames = new Pool<String>(); - emptyFakeState = new ManifestRevision(null, null); - emptyFakeState.begin(-1, null, -1); - emptyFakeState.end(-1); + emptyFakeState = createEmptyManifestRevision(); } public HgRepository getRepo() { @@ -137,6 +135,13 @@ }); } + /*package-local*/ static ManifestRevision createEmptyManifestRevision() { + ManifestRevision fakeEmptyRev = new ManifestRevision(null, null); + fakeEmptyRev.begin(-1, null, -1); + fakeEmptyRev.end(-1); + return fakeEmptyRev; + } + /*package-local*/ ManifestRevision raw(int rev) { return get(rev); }