Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgTags.java @ 490:b3c16d1aede0
Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 16 Aug 2012 17:08:34 +0200 |
parents | 909306e412e2 |
children | d9c07e1432c4 |
comparison
equal
deleted
inserted
replaced
489:9c0138cda59a | 490:b3c16d1aede0 |
---|---|
107 line = line.trim(); | 107 line = line.trim(); |
108 if (line.length() == 0) { | 108 if (line.length() == 0) { |
109 continue; | 109 continue; |
110 } | 110 } |
111 if (line.length() < 40+2 /*nodeid, space and at least single-char tagname*/) { | 111 if (line.length() < 40+2 /*nodeid, space and at least single-char tagname*/) { |
112 repo.getContext().getLog().dump(getClass(), Warn, "Bad tags line: %s", line); | 112 repo.getSessionContext().getLog().dump(getClass(), Warn, "Bad tags line: %s", line); |
113 continue; | 113 continue; |
114 } | 114 } |
115 int spacePos = line.indexOf(' '); | 115 int spacePos = line.indexOf(' '); |
116 if (spacePos != -1) { | 116 if (spacePos != -1) { |
117 assert spacePos == 40; | 117 assert spacePos == 40; |
151 // !contains because we don't care about order of the tags per revision | 151 // !contains because we don't care about order of the tags per revision |
152 revTags.add(tagName); | 152 revTags.add(tagName); |
153 } | 153 } |
154 | 154 |
155 } else { | 155 } else { |
156 repo.getContext().getLog().dump(getClass(), Warn, "Bad tags line: %s", line); | 156 repo.getSessionContext().getLog().dump(getClass(), Warn, "Bad tags line: %s", line); |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 public List<String> tags(Nodeid nid) { | 161 public List<String> tags(Nodeid nid) { |