comparison src/org/tmatesoft/hg/repo/CommitFacility.java @ 540:67d4b0f73984

Include commit tests into Ant's test suite
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 13 Feb 2013 19:41:33 +0100
parents 9edfd5a223b8
children 6ca3d0c5b4bc
comparison
equal deleted inserted replaced
539:9edfd5a223b8 540:67d4b0f73984
139 if (df.exists()) { 139 if (df.exists()) {
140 contentStream = df.content; 140 contentStream = df.content;
141 } else { 141 } else {
142 contentStream = repo.createStoreFile(df.getPath()); 142 contentStream = repo.createStoreFile(df.getPath());
143 newlyAddedFiles.add(df.getPath()); 143 newlyAddedFiles.add(df.getPath());
144 // FIXME df doesn't get df.content updated, and clients
145 // that would attempt to access newly added file after commit would fail
146 // (despite the fact the file is in there)
144 } 147 }
145 RevlogStreamWriter fileWriter = new RevlogStreamWriter(repo.getSessionContext(), contentStream); 148 RevlogStreamWriter fileWriter = new RevlogStreamWriter(repo.getSessionContext(), contentStream);
146 Nodeid fileRev = fileWriter.addRevision(bac.toArray(), clogRevisionIndex, fp.first(), fp.second()); 149 Nodeid fileRev = fileWriter.addRevision(bac.toArray(), clogRevisionIndex, fp.first(), fp.second());
147 newManifestRevision.put(df.getPath(), fileRev); 150 newManifestRevision.put(df.getPath(), fileRev);
148 } 151 }