Mercurial > jhg
comparison src/org/tmatesoft/hg/util/PathRewrite.java @ 141:8248aae33f7d
Adopt FileIterator moving towards WCStatusCollector parameterizing. Improved path handling, move 'em around
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 17 Feb 2011 04:08:34 +0100 |
| parents | a3a2e5deb320 |
| children | 37a34044e6bd |
comparison
equal
deleted
inserted
replaced
| 140:1c1891ad1c73 | 141:8248aae33f7d |
|---|---|
| 24 * @author Artem Tikhomirov | 24 * @author Artem Tikhomirov |
| 25 * @author TMate Software Ltd. | 25 * @author TMate Software Ltd. |
| 26 */ | 26 */ |
| 27 public interface PathRewrite { | 27 public interface PathRewrite { |
| 28 | 28 |
| 29 // XXX think over CharSequence use instead of String | |
| 29 public String rewrite(String path); | 30 public String rewrite(String path); |
| 30 | 31 |
| 31 public static class Empty implements PathRewrite { | 32 public static class Empty implements PathRewrite { |
| 32 public String rewrite(String path) { | 33 public String rewrite(String path) { |
| 33 return path; | 34 return path; |
