comparison src/org/tmatesoft/hg/core/HgChangeset.java @ 415:ee8264d80747

Explicit constant for regular file flags, access to flags for a given file revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 18:54:11 +0100
parents 2747b0723867
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
414:bb278ccf9866 415:ee8264d80747
270 for (Path s : r.getModified()) { 270 for (Path s : r.getModified()) {
271 Nodeid nid = r.nodeidAfterChange(s); 271 Nodeid nid = r.nodeidAfterChange(s);
272 if (nid == null) { 272 if (nid == null) {
273 throw new HgException(String.format("For the file %s recorded as modified couldn't find revision after change", s)); 273 throw new HgException(String.format("For the file %s recorded as modified couldn't find revision after change", s));
274 } 274 }
275 modified.add(new HgFileRevision(repo, nid, s, null)); 275 modified.add(new HgFileRevision(repo, nid, null, s, null));
276 } 276 }
277 final Map<Path, Path> copied = r.getCopied(); 277 final Map<Path, Path> copied = r.getCopied();
278 for (Path s : r.getAdded()) { 278 for (Path s : r.getAdded()) {
279 Nodeid nid = r.nodeidAfterChange(s); 279 Nodeid nid = r.nodeidAfterChange(s);
280 if (nid == null) { 280 if (nid == null) {
281 throw new HgException(String.format("For the file %s recorded as added couldn't find revision after change", s)); 281 throw new HgException(String.format("For the file %s recorded as added couldn't find revision after change", s));
282 } 282 }
283 added.add(new HgFileRevision(repo, nid, s, copied.get(s))); 283 added.add(new HgFileRevision(repo, nid, null, s, copied.get(s)));
284 } 284 }
285 for (Path s : r.getRemoved()) { 285 for (Path s : r.getRemoved()) {
286 // with Path from getRemoved, may just copy 286 // with Path from getRemoved, may just copy
287 deleted.add(s); 287 deleted.add(s);
288 } 288 }