Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgCatCommand.java @ 565:78a9e26e670d
Refactor common code to initialize changelog revision for a command into standalone class
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Tue, 09 Apr 2013 17:15:30 +0200 |
| parents | 31a89587eb04 |
| children | 98ff1fb49abe |
comparison
equal
deleted
inserted
replaced
| 564:e6407313bab7 | 565:78a9e26e670d |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011-2012 TMate Software Ltd | 2 * Copyright (c) 2011-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 * |
| 123 */ | 123 */ |
| 124 public HgCatCommand changeset(Nodeid nodeid) { | 124 public HgCatCommand changeset(Nodeid nodeid) { |
| 125 revisionIndex = BAD_REVISION; | 125 revisionIndex = BAD_REVISION; |
| 126 revision = null; | 126 revision = null; |
| 127 cset = nodeid; | 127 cset = nodeid; |
| 128 // TODO [2.0 API break] shall use CsetParamKeeper instead, but Exception thrown would break the API | |
| 128 return this; | 129 return this; |
| 129 } | 130 } |
| 130 | 131 |
| 131 /** | 132 /** |
| 132 * Runs the command with current set of parameters and pipes data to provided sink. | 133 * Runs the command with current set of parameters and pipes data to provided sink. |
