comparison 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
comparison
equal deleted inserted replaced
63:a47530a2ea12 64:19e9e220bf68
1 /* 1 /*
2 * Copyright (c) 2010, 2011 Artem Tikhomirov 2 * Copyright (c) 2010, 2011 Artem Tikhomirov
3 */ 3 */
4 package com.tmate.hgkit.ll; 4 package com.tmate.hgkit.ll;
5 5
6 import org.tmatesoft.hg.core.Path;
7 import org.tmatesoft.hg.util.PathRewrite;
8
6 9
7 /** 10 /**
11 * Shall be as state-less as possible, all the caching happens outside the repo, in commands/walkers
8 * @author artem 12 * @author artem
9 */ 13 */
10 public abstract class HgRepository { 14 public abstract class HgRepository {
11 15
12 public static final int TIP = -1; 16 public static final int TIP = -1;
55 } 59 }
56 60
57 protected abstract HgTags createTags(); 61 protected abstract HgTags createTags();
58 62
59 public abstract HgDataFile getFileNode(String path); 63 public abstract HgDataFile getFileNode(String path);
64 public abstract HgDataFile getFileNode(Path path);
60 65
61 public abstract String getLocation(); 66 public abstract String getLocation();
67
68 public abstract PathRewrite getPathHelper();
62 69
63 70
64 protected abstract String toStoragePath(String path, boolean isData); 71 protected abstract String toStoragePath(String path, boolean isData);
65 72
66 /** 73 /**