diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgChangeset.java	Wed Mar 21 20:51:12 2012 +0100
+++ b/src/org/tmatesoft/hg/core/HgChangeset.java	Thu Mar 22 18:54:11 2012 +0100
@@ -272,7 +272,7 @@
 			if (nid == null) {
 				throw new HgException(String.format("For the file %s recorded as modified couldn't find revision after change", s));
 			}
-			modified.add(new HgFileRevision(repo, nid, s, null));
+			modified.add(new HgFileRevision(repo, nid, null, s, null));
 		}
 		final Map<Path, Path> copied = r.getCopied();
 		for (Path s : r.getAdded()) {
@@ -280,7 +280,7 @@
 			if (nid == null) {
 				throw new HgException(String.format("For the file %s recorded as added couldn't find revision after change", s));
 			}
-			added.add(new HgFileRevision(repo, nid, s, copied.get(s)));
+			added.add(new HgFileRevision(repo, nid, null, s, copied.get(s)));
 		}
 		for (Path s : r.getRemoved()) {
 			// with Path from getRemoved, may just copy