Mercurial > jhg
comparison test/org/tmatesoft/hg/test/LogOutputParser.java @ 150:6b55f10ef54b
Unused variables removed.
author | Alexander Kitaev <kitaev@gmail.com> |
---|---|
date | Thu, 24 Feb 2011 18:53:33 +0100 |
parents | a3a2e5deb320 |
children | 7a908ba66ff3 |
comparison
equal
deleted
inserted
replaced
149:868a5a6e9f93 | 150:6b55f10ef54b |
---|---|
35 private Pattern pattern2; | 35 private Pattern pattern2; |
36 private Pattern pattern3; | 36 private Pattern pattern3; |
37 private Pattern pattern4; | 37 private Pattern pattern4; |
38 | 38 |
39 public LogOutputParser(boolean outputWithDebug) { | 39 public LogOutputParser(boolean outputWithDebug) { |
40 String p; | |
41 if (outputWithDebug) { | 40 if (outputWithDebug) { |
42 pattern1 = Pattern.compile("^changeset:\\s+(\\d+):([a-f0-9]{40})\n(^tag:(.+)$)?", Pattern.MULTILINE); | 41 pattern1 = Pattern.compile("^changeset:\\s+(\\d+):([a-f0-9]{40})\n(^tag:(.+)$)?", Pattern.MULTILINE); |
43 pattern2 = Pattern.compile("^parent:\\s+(-?\\d+):([a-f0-9]{40})\n", Pattern.MULTILINE); | 42 pattern2 = Pattern.compile("^parent:\\s+(-?\\d+):([a-f0-9]{40})\n", Pattern.MULTILINE); |
44 pattern3 = Pattern.compile("^manifest:\\s+(\\d+):([a-f0-9]{40})\nuser:\\s+(\\S.+)\ndate:\\s+(\\S.+)\n", Pattern.MULTILINE); | 43 pattern3 = Pattern.compile("^manifest:\\s+(\\d+):([a-f0-9]{40})\nuser:\\s+(\\S.+)\ndate:\\s+(\\S.+)\n", Pattern.MULTILINE); |
45 pattern4 = Pattern.compile("^description:\n^(.+)\n\n", Pattern.MULTILINE); | 44 pattern4 = Pattern.compile("^description:\n^(.+)\n\n", Pattern.MULTILINE); |
96 public String parent2Nodeid; | 95 public String parent2Nodeid; |
97 public String user; | 96 public String user; |
98 public String date; | 97 public String date; |
99 public String description; | 98 public String description; |
100 } | 99 } |
101 | |
102 private static void a(Matcher m) { | |
103 for (int i = 1; i <= m.groupCount(); i++) { | |
104 System.out.println("" + i + ":" + m.group(i)); | |
105 } | |
106 } | |
107 } | 100 } |