Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/ext/MqManager.java @ 475:0e34b8f3946a
Tests for MqManager
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 12 Jul 2012 16:57:40 +0200 |
| parents | 7bcfbc255f48 |
| children | f3fab7a20841 |
comparison
equal
deleted
inserted
replaced
| 474:09f2d38ecf26 | 475:0e34b8f3946a |
|---|---|
| 196 */ | 196 */ |
| 197 public List<String> getQueueNames() { | 197 public List<String> getQueueNames() { |
| 198 return Collections.unmodifiableList(queueNames); | 198 return Collections.unmodifiableList(queueNames); |
| 199 } | 199 } |
| 200 | 200 |
| 201 public class PatchRecord { | 201 public final class PatchRecord { |
| 202 private final Nodeid nodeid; | 202 private final Nodeid nodeid; |
| 203 private final String name; | 203 private final String name; |
| 204 private final Path location; | 204 private final Path location; |
| 205 | 205 |
| 206 // hashCode/equals might be useful if cons becomes public | 206 // hashCode/equals might be useful if cons becomes public |
| 235 * Location of diff file with the patch, relative to repository root | 235 * Location of diff file with the patch, relative to repository root |
| 236 * @return path to the patch, never <code>null</code> | 236 * @return path to the patch, never <code>null</code> |
| 237 */ | 237 */ |
| 238 public Path getPatchLocation() { | 238 public Path getPatchLocation() { |
| 239 return location; | 239 return location; |
| 240 } | |
| 241 | |
| 242 @Override | |
| 243 public String toString() { | |
| 244 String fmt = "mq.PatchRecord[name:%s; %spath:%s]"; | |
| 245 String ni = nodeid != null ? String.format("applied as: %s; ", nodeid.shortNotation()) : ""; | |
| 246 return String.format(fmt, name, ni, location); | |
| 240 } | 247 } |
| 241 } | 248 } |
| 242 | 249 |
| 243 // TODO refine API and extract into separate classes | 250 // TODO refine API and extract into separate classes |
| 244 | 251 |
