Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/ManifestRevision.java @ 423:9c9c442b5f2e
Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 23 Mar 2012 22:51:18 +0100 |
parents | ee8264d80747 |
children | 6437d261048a |
comparison
equal
deleted
inserted
replaced
422:5d1cc7366d04 | 423:9c9c442b5f2e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 TMate Software Ltd | 2 * Copyright (c) 2011-2012 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
17 package org.tmatesoft.hg.internal; | 17 package org.tmatesoft.hg.internal; |
18 | 18 |
19 import java.util.Collection; | 19 import java.util.Collection; |
20 import java.util.TreeMap; | 20 import java.util.TreeMap; |
21 | 21 |
22 import org.tmatesoft.hg.core.HgBadStateException; | |
23 import org.tmatesoft.hg.core.Nodeid; | 22 import org.tmatesoft.hg.core.Nodeid; |
24 import org.tmatesoft.hg.repo.HgManifest; | 23 import org.tmatesoft.hg.repo.HgManifest; |
25 import org.tmatesoft.hg.util.Path; | 24 import org.tmatesoft.hg.util.Path; |
26 | 25 |
27 /** | 26 /** |
73 } | 72 } |
74 | 73 |
75 // | 74 // |
76 | 75 |
77 public boolean next(Nodeid nid, String fname, String flags) { | 76 public boolean next(Nodeid nid, String fname, String flags) { |
78 throw new HgBadStateException(HgManifest.Inspector2.class.getName()); | 77 throw new IllegalStateException(HgManifest.Inspector2.class.getName()); |
79 } | 78 } |
80 | 79 |
81 public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) { | 80 public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) { |
82 if (namesPool != null) { | 81 if (namesPool != null) { |
83 fname = namesPool.unify(fname); | 82 fname = namesPool.unify(fname); |