Mercurial > hg4j
diff src/org/tmatesoft/hg/util/PathRewrite.java @ 93:d55d4eedfc57
Switch to Path instead of String in filenames returned by various status operations
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 21:15:21 +0100 |
parents | 6f1b88693d48 |
children | a3a2e5deb320 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/PathRewrite.java Thu Jan 27 06:31:58 2011 +0100 +++ b/src/org/tmatesoft/hg/util/PathRewrite.java Thu Jan 27 21:15:21 2011 +0100 @@ -27,6 +27,12 @@ public interface PathRewrite { public String rewrite(String path); + + public static class Empty implements PathRewrite { + public String rewrite(String path) { + return path; + } + } public class Composite implements PathRewrite { private List<PathRewrite> chain;