diff src/org/tmatesoft/hg/core/Cset.java @ 87:25f2e5d1cd8b

Fix IAE when changeset has no files listed (merged revision)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 26 Jan 2011 01:07:26 +0100
parents 6f1b88693d48
children d55d4eedfc57
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/Cset.java	Wed Jan 26 01:06:37 2011 +0100
+++ b/src/org/tmatesoft/hg/core/Cset.java	Wed Jan 26 01:07:26 2011 +0100
@@ -85,6 +85,10 @@
 	}
 
 	public List<Path> getAffectedFiles() {
+		// reports files as recorded in changelog. Note, merge revisions may have no
+		// files listed, and thus this method would return empty list, while
+		// #getModifiedFiles() would return list with merged file(s) (because it uses status to get 'em, not
+		// what #files() gives).
 		ArrayList<Path> rv = new ArrayList<Path>(changeset.files().size());
 		for (String name : changeset.files()) {
 			rv.add(pathHelper.path(name));