Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/ManifestOutputParser.java @ 70:993f6f8e1314
Test for log command
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 23 Jan 2011 03:28:52 +0100 |
parents | 64bddc2dcc0e |
children | 6f1b88693d48 |
comparison
equal
deleted
inserted
replaced
69:5a69397f0f99 | 70:993f6f8e1314 |
---|---|
34 | 34 |
35 private final Pattern pattern; | 35 private final Pattern pattern; |
36 private final LinkedHashMap<Path, Nodeid> result = new LinkedHashMap<Path, Nodeid>(); | 36 private final LinkedHashMap<Path, Nodeid> result = new LinkedHashMap<Path, Nodeid>(); |
37 | 37 |
38 public ManifestOutputParser() { | 38 public ManifestOutputParser() { |
39 pattern = Pattern.compile("^([a-z0-9]{40}) (\\d{3}) (.+)$", Pattern.MULTILINE); | 39 pattern = Pattern.compile("^([a-f0-9]{40}) (\\d{3}) (.+)$", Pattern.MULTILINE); |
40 } | 40 } |
41 | 41 |
42 public void reset() { | 42 public void reset() { |
43 result.clear(); | 43 result.clear(); |
44 } | 44 } |