comparison cmdline/org/tmatesoft/hg/console/Manifest.java @ 628:6526d8adbc0f

Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 22 May 2013 15:52:31 +0200
parents d78cb5ca3053
children
comparison
equal deleted inserted replaced
627:5153eb73b18d 628:6526d8adbc0f
1 /* 1 /*
2 * Copyright (c) 2010-2012 TMate Software Ltd 2 * Copyright (c) 2010-2013 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 *
25 import org.tmatesoft.hg.core.Nodeid; 25 import org.tmatesoft.hg.core.Nodeid;
26 import org.tmatesoft.hg.repo.HgInvalidControlFileException; 26 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
27 import org.tmatesoft.hg.repo.HgInvalidRevisionException; 27 import org.tmatesoft.hg.repo.HgInvalidRevisionException;
28 import org.tmatesoft.hg.repo.HgManifest; 28 import org.tmatesoft.hg.repo.HgManifest;
29 import org.tmatesoft.hg.repo.HgRepository; 29 import org.tmatesoft.hg.repo.HgRepository;
30 import org.tmatesoft.hg.repo.HgRuntimeException;
30 import org.tmatesoft.hg.util.Path; 31 import org.tmatesoft.hg.util.Path;
31 32
32 33
33 /** 34 /**
34 * 35 *
50 51
51 public void begin(Nodeid manifestRevision) { 52 public void begin(Nodeid manifestRevision) {
52 } 53 }
53 public void dir(Path p) { 54 public void dir(Path p) {
54 } 55 }
55 public void file(HgFileRevision fileRevision) { 56 public void file(HgFileRevision fileRevision) throws HgRuntimeException {
56 try { 57 try {
57 if (debug) { 58 if (debug) {
58 System.out.print(fileRevision.getRevision());; 59 System.out.print(fileRevision.getRevision());;
59 } 60 }
60 if (debug || verbose) { 61 if (debug || verbose) {