diff src/org/tmatesoft/hg/core/HgChangeset.java @ 148:1a7a9a20e1f9

Exceptions, javadoc. Initial cancel and progress support
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Feb 2011 22:36:28 +0100
parents 37a34044e6bd
children ba2bf656f00f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgChangeset.java	Tue Feb 22 15:49:26 2011 +0100
+++ b/src/org/tmatesoft/hg/core/HgChangeset.java	Wed Feb 23 22:36:28 2011 +0100
@@ -157,14 +157,14 @@
 		for (Path s : r.getModified()) {
 			Nodeid nid = r.nodeidAfterChange(s);
 			if (nid == null) {
-				throw new IllegalArgumentException();
+				throw new HgBadStateException();
 			}
 			modified.add(new FileRevision(repo, nid, s));
 		}
 		for (Path s : r.getAdded()) {
 			Nodeid nid = r.nodeidAfterChange(s);
 			if (nid == null) {
-				throw new IllegalArgumentException();
+				throw new HgBadStateException();
 			}
 			added.add(new FileRevision(repo, nid, s));
 		}