Mercurial > jhg
diff src/com/tmate/hgkit/ll/HgRepository.java @ 64:19e9e220bf68
Convenient commands constitute hi-level API. org.tmatesoft namespace, GPL2 statement
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 21 Jan 2011 05:56:43 +0100 |
parents | 05829a70b30b |
children | 0e499fed9b3d |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/HgRepository.java Tue Jan 18 18:42:50 2011 +0100 +++ b/src/com/tmate/hgkit/ll/HgRepository.java Fri Jan 21 05:56:43 2011 +0100 @@ -3,8 +3,12 @@ */ package com.tmate.hgkit.ll; +import org.tmatesoft.hg.core.Path; +import org.tmatesoft.hg.util.PathRewrite; + /** + * Shall be as state-less as possible, all the caching happens outside the repo, in commands/walkers * @author artem */ public abstract class HgRepository { @@ -57,8 +61,11 @@ protected abstract HgTags createTags(); public abstract HgDataFile getFileNode(String path); + public abstract HgDataFile getFileNode(Path path); public abstract String getLocation(); + + public abstract PathRewrite getPathHelper(); protected abstract String toStoragePath(String path, boolean isData);